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

Unified Diff: lib/naclports/package.py

Issue 1012773005: Improve tracing/logging system used in lib/naclports (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Created 5 years, 9 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
Index: lib/naclports/package.py
diff --git a/lib/naclports/package.py b/lib/naclports/package.py
index 93376e2ee97ca842d2c392727826606b5282d9e7..872546bd2d10f918c2c8b6ee700c658354ddceec 100644
--- a/lib/naclports/package.py
+++ b/lib/naclports/package.py
@@ -4,7 +4,7 @@
import os
-from naclports.util import Trace, Log, Warn
+from naclports.util import Log, Warn, LogVerbose
from naclports.error import Error
from naclports import configuration, pkg_info, util
@@ -160,12 +160,12 @@ class InstalledPackage(Package):
root = util.GetInstallRoot(self.config)
for filename in self.Files():
- filename = os.path.join(root, filename)
- if not os.path.lexists(filename):
- Warn('File not found while uninstalling: %s' % filename)
+ fullname = os.path.join(root, filename)
+ if not os.path.lexists(fullname):
+ Warn('File not found while uninstalling: %s' % fullname)
continue
- Trace('rm %s' % filename)
- RemoveFile(filename)
+ LogVerbose('uninstall: %s' % filename)
+ RemoveFile(fullname)
RemoveFile(self.GetListFile())

Powered by Google App Engine
This is Rietveld 408576698