summaryrefslogtreecommitdiff
path: root/lib/thandy/packagesys/RPMPackages.py
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2009-01-22 10:54:34 -0500
committerNick Mathewson <nickm@torproject.org>2009-01-22 10:56:31 -0500
commitb64339f48280872deec7bb980a61e494f6f38c92 (patch)
treefe8262b8a6e7ca572cfe8c5c26720670697d8f8d /lib/thandy/packagesys/RPMPackages.py
parent2068158fd08ca042b874422ee3826f40803f31d8 (diff)
Fix multiple pychecker-spotted typos.
These are mostly typos in methods that don't get used in the current Thandy, error in error-handling paths, modules we imported unnecessarily, etc.
Diffstat (limited to 'lib/thandy/packagesys/RPMPackages.py')
-rw-r--r--lib/thandy/packagesys/RPMPackages.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/thandy/packagesys/RPMPackages.py b/lib/thandy/packagesys/RPMPackages.py
index c710b8d..2c793e3 100644
--- a/lib/thandy/packagesys/RPMPackages.py
+++ b/lib/thandy/packagesys/RPMPackages.py
@@ -106,7 +106,7 @@ def checkRPMInstall(name, version, ts=None):
for fname, flags, md5sum in zip(h['filenames'], h['fileflags'], h['filemd5s']):
haveMD5 = fileMD5(fname)
if not haveMD5:
- if flags & RPMFILE_MISSINGOK:
+ if (flags & rpm.RPMFILE_MISSINGOK):
logging.info("%s is missing or unreadable from %s %s; "
"that's ok.", fname, name, h['version'])
else:
@@ -118,7 +118,7 @@ def checkRPMInstall(name, version, ts=None):
fname, name, h['version'])
else:
# file changed. If it's not configuration, that's a problem.
- if not flags & RPMFILE_CONFIG:
+ if not (flags & rpm.RPMFILE_CONFIG):
logging.warn("%s changed from installed version of %s %s",
fname, name, h['version'])
all_ok = False