Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(230)

Unified Diff: lib/webports/package.py

Issue 1693433005: Add package info to build failed error message (Closed) Base URL: https://chromium.googlesource.com/webports.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | lib/webports/source_package.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/webports/package.py
diff --git a/lib/webports/package.py b/lib/webports/package.py
index 23ef4b87421d00707de44a124f83dbea68b230c0..9c85cd34be541cfcd0510228354dd02fd30c4742 100644
--- a/lib/webports/package.py
+++ b/lib/webports/package.py
@@ -85,12 +85,11 @@ class Package(object):
return '<Package %s %s %s>' % (self.NAME, self.VERSION, self.config)
def InfoString(self):
- return "'%s' [%s]" % (self.NAME, self.config)
+ return "'%s' [%s]" % ((util.Color(self.NAME, 'yellow'),
+ util.Color(self.config, 'blue')))
- def LogStatus(self, message, suffix=''):
- util.LogHeading(message, " '%s' [%s] %s" %
- (util.Color(self.NAME, 'yellow'),
- util.Color(self.config, 'blue'), suffix))
+ def LogStatus(self, message):
+ util.LogHeading(message, " " + self.InfoString())
def CheckDeps(self, valid_packages):
for package in self.DEPENDS:
« no previous file with comments | « no previous file | lib/webports/source_package.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698