aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBogdano Arendartchuk <bogdano@mandriva.org>2007-01-05 05:21:41 +0000
committerBogdano Arendartchuk <bogdano@mandriva.org>2007-01-05 05:21:41 +0000
commit73f6e20d624b4f69338537c6f78eedede0c45172 (patch)
tree304416055ff8433480fcb05c0fb7518b06660927
parente21d6b15e3762f04f3e40c2db80b7af0ca2289a1 (diff)
downloadmgarepo-73f6e20d624b4f69338537c6f78eedede0c45172.tar
mgarepo-73f6e20d624b4f69338537c6f78eedede0c45172.tar.gz
mgarepo-73f6e20d624b4f69338537c6f78eedede0c45172.tar.bz2
mgarepo-73f6e20d624b4f69338537c6f78eedede0c45172.tar.xz
mgarepo-73f6e20d624b4f69338537c6f78eedede0c45172.zip
The condition will never be true. The same check is done some lines before.
-rw-r--r--RepSys/rpmutil.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/RepSys/rpmutil.py b/RepSys/rpmutil.py
index 07b3bf3..b8bff3d 100644
--- a/RepSys/rpmutil.py
+++ b/RepSys/rpmutil.py
@@ -333,9 +333,7 @@ def check_changed(url, all=0, show=0, verbose=0):
print "clean"
clean.append(package)
if verbose:
- if not packages:
- print "No packages found!"
- elif all:
+ if all:
print "Total clean packages: %s" % len(clean)
print "Total CHANGED packages: %d" % len(changed)
print "Total NO CURRENT packages: %s" % len(nocurrent)
@@ -350,7 +348,7 @@ def checkout(url, path=None, revision=None):
current = os.path.join(url, "current")
if path is None:
_, path = os.path.split(url)
- svn.checkout(current, path, rev=revision, show=1)
+ svn.checkout(current, path, revision=SVN.revision(revision), show=1)
def get_submit_info(path):
path = os.path.abspath(path)