From: Guido Günther Date: Mon, 16 Sep 2013 17:20:25 +0000 (+0200) Subject: pq: Only print number or tries if we try more than once X-Git-Tag: debian/0.6.4~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=820100d702c3a2bed084061892f49bcb43a87b38;p=tools%2Fgit-buildpackage.git pq: Only print number or tries if we try more than once --- diff --git a/gbp/scripts/pq.py b/gbp/scripts/pq.py index 70aabf52..59be3832 100755 --- a/gbp/scripts/pq.py +++ b/gbp/scripts/pq.py @@ -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)