[yum-git] Makefile verifytree.py

Tim Lauridsen timlau at linux.duke.edu
Wed Sep 24 14:39:04 UTC 2008


 Makefile      |    2 +-
 verifytree.py |   10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)

New commits:
commit 59d837a2a8f9aa0eed641100c61b97f237d9fcaa
Author: Tim Lauridsen <timlau at fedoraproject.org>
Date:   Wed Sep 24 16:38:43 2008 +0200

    add verifytree to pylint check

diff --git a/Makefile b/Makefile
index e2e9d94..50596ed 100644
--- a/Makefile
+++ b/Makefile
@@ -84,7 +84,7 @@ ChangeLog: FORCE
 pylint:
 	@pylint --rcfile=test/yum-utils-pylintrc \
 		yumdownloader.py yum-complete-transaction.py yum-debug-dump.py yum-builddep.py \
-                debuginfo-install.py package-cleanup.py yum-groups-manager.py \
+                debuginfo-install.py package-cleanup.py yum-groups-manager.py verifytree.py \
 		plugins/remove-with-leaves/remove-with-leaves.py \
 		plugins/upgrade-helper/upgrade-helper.py \
 		plugins/security/security.py \
diff --git a/verifytree.py b/verifytree.py
index 92981c6..434d095 100755
--- a/verifytree.py
+++ b/verifytree.py
@@ -40,7 +40,7 @@ case_numbers = {'REPODATA': 56, 'CORE_PACKAGES': 57, 'COMPS': 58,
                 'BOOT_IMAGES': 59}
 
 # URL for the RELAX NG schema for comps
-SCHEMA='http://cvs.fedoraproject.org/viewcvs/*checkout*/comps/comps.rng'
+SCHEMA = 'http://cvs.fedoraproject.org/viewcvs/*checkout*/comps/comps.rng'
 
 def testopia_create_run(plan):
     '''Create a run of the given test plan. Returns the run ID.'''
@@ -160,7 +160,7 @@ def main():
     newrepo.metadata_expire = 0
     newrepo.enablegroups = 1
     # we want *all* metadata
-    newrepo.mdpolicy='group:all'
+    newrepo.mdpolicy = 'group:all'
 
     # add our new repo
     my.repos.add(newrepo)
@@ -213,7 +213,7 @@ def main():
 
     if not (retval & BAD_COMPS):
         print "  verifying comps.xml grammar with xmllint"
-        comps=newrepo.getGroups()
+        comps = newrepo.getGroups()
         r = os.system("xmllint --noout --nowarning --relaxng %s %s" % 
             (SCHEMA,comps))
         if r != 0:
@@ -268,5 +268,5 @@ def main():
     return retval
 
 if __name__ == "__main__":
-    r = main()
-    sys.exit(r)
+    rc = main()
+    sys.exit(rc)



More information about the Yum-cvs-commits mailing list