Michał Górny avatar Michał Górny committed ad5659e

Output final result status even with --quiet.

Comments (0)

Files changed (2)

smartliverebuild/core.py

 			subprocess.Popen(cmd, stdout=sys.stderr).wait()
 
 		if len(packages) < 1:
-			out.s1('No updates found')
+			out.result('No updates found')
 		else:
-			out.s1('Found %s%d%s packages to rebuild.' % (out.white, len(packages), out.s1reset))
+			out.result('Found %s%d%s packages to rebuild.' % (out.white, len(packages), out.s1reset))
 	finally:
 		if childpid: # make sure that we leave no orphans
 			os.kill(childpid, signal.SIGTERM)

smartliverebuild/output.py

 		self.s2 = lambda x: None
 		self.s3 = lambda x: None
 
+	def result(self, msg):
+		""" Basically a s1 which doesn't respect --quiet. """
+		self.out('%s*** %s%s\n' % (self.s1reset, msg, self.reset))
 	def s1(self, msg):
 		self.out('%s*** %s%s\n' % (self.s1reset, msg, self.reset))
 		self._cur_header = None
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.