[yum-git] 2 commits - package-cleanup.py test/test-yumdownloader test/yum-utils-pylintrc

Tim Lauridsen timlau at linux.duke.edu
Wed Sep 24 13:54:24 UTC 2008


 package-cleanup.py      |    4 +---
 test/test-yumdownloader |   11 ++++++++++-
 test/yum-utils-pylintrc |    3 ++-
 3 files changed, 13 insertions(+), 5 deletions(-)

New commits:
commit 86a0b1da70c7c215d03abf583a6be7d7bcd31ca6
Author: Tim Lauridsen <timlau at fedoraproject.org>
Date:   Wed Sep 24 15:54:07 2008 +0200

    disable *More than one statement on a single line* pylint warning an undo some crazy stuff

diff --git a/package-cleanup.py b/package-cleanup.py
index aab5ed0..aadfb4e 100755
--- a/package-cleanup.py
+++ b/package-cleanup.py
@@ -86,9 +86,7 @@ def buildProviderList(my, pkgs, reportProblems):
             if ver == '':
                 ver = None
             rflags = flags & 15
-            if req.startswith('rpmlib'):
-                continue # ignore rpmlib deps
-            
+            if req.startswith('rpmlib'): continue # ignore rpmlib deps
             if not providers.has_key((req,rflags,ver)):
                 resolve_sack = my.rpmdb.whatProvides(req,rflags,ver)
             else:
diff --git a/test/yum-utils-pylintrc b/test/yum-utils-pylintrc
index bb2751b..77eadc5 100644
--- a/test/yum-utils-pylintrc
+++ b/test/yum-utils-pylintrc
@@ -68,7 +68,8 @@ load-plugins=
 # R0915: *Too many statements (%s/%s)*
 # W0602: *Using global for %r but no assigment is done*
 # W0511:  Used when a warning note as FIXME or XXX is detected
-disable-msg=C0324,C0301,C0111,E1101,F0401,R0201,W0704,W0612,W0212,R0801,W0613,R0912,R0915,W0602,W0511
+# C0321: *More than one statement on a single line*
+disable-msg=C0324,C0301,C0111,E1101,F0401,R0201,W0704,W0612,W0212,R0801,W0613,R0912,R0915,W0602,W0511,C0321
 
 
 [REPORTS]
commit cb1f3b7cfc7e5a9143432f526601f64e465028b1
Author: Tim Lauridsen <timlau at fedoraproject.org>
Date:   Wed Sep 24 15:26:55 2008 +0200

    make the test-yumdownloader script a little better

diff --git a/test/test-yumdownloader b/test/test-yumdownloader
index 6ae668d..8f90d3f 100755
--- a/test/test-yumdownloader
+++ b/test/test-yumdownloader
@@ -2,10 +2,19 @@
 # Test script to test yumdownloader
 echo "*********************  Testing yumdownloader  ***************************"
 echo "****  yumdownloader.py yum  (basic package download in current dir"
-rm yum*.rpm 
 python yumdownloader.py yum
 echo "*************************************************************************"
+echo "****  yumdownloader.py yum --source (packag source download)"
+python yumdownloader.py yum --source
+echo "*************************************************************************"
+echo "****  yumdownloader.py yum --destdir(packag source download)"
+mkdir dnl-tst
+python yumdownloader.py yum --destdir=dnl-tst
+dir dnl-tst/yum*
+rm -rf dnl-tst
+echo "*************************************************************************"
 echo "****  yumdownloader.py --resolve --url kdetoys (testing --resolv and --url)"
 python yumdownloader.py --resolve --url kdetoys
 echo "*************************************************************************"
+rm yum*.rpm 
 



More information about the Yum-cvs-commits mailing list