pq: Only print number or tries if we try more than once
authorGuido Günther <agx@sigxcpu.org>
Mon, 16 Sep 2013 17:20:25 +0000 (19:20 +0200)
committerGuido Günther <agx@sigxcpu.org>
Mon, 16 Sep 2013 17:22:45 +0000 (19:22 +0200)
gbp/scripts/pq.py

index 70aabf5..59be383 100755 (executable)
@@ -137,7 +137,7 @@ def import_quilt_patches(repo, branch, series, tries, force):
 
     i = len(commits)
     for commit in commits:
-        if len(commits):
+        if len(commits) > 1:
             gbp.log.info("%d %s left" % (i, 'tries' if i > 1 else 'try'))
         try:
             gbp.log.info("Trying to apply patches at '%s'" % commit)