From 824e83ed3e26f625bf476a6a5dacc6003cbc6e96 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Guido=20G=C3=BCnther?= Date: Sat, 24 Nov 2012 13:10:35 +0100 Subject: [PATCH] gbp-pq: don't use plural form when there's only one try left --- gbp/scripts/pq.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gbp/scripts/pq.py b/gbp/scripts/pq.py index bc57238..3f7cd52 100755 --- a/gbp/scripts/pq.py +++ b/gbp/scripts/pq.py @@ -135,7 +135,7 @@ def import_quilt_patches(repo, branch, series, tries, force): i = len(commits) for commit in commits: if len(commits): - gbp.log.info("%d tries left" % i) + gbp.log.info("%d %s left" % (i, 'tries' if i > 1 else 'try')) try: gbp.log.info("Trying to apply patches at '%s'" % commit) repo.create_branch(pq_branch, commit) -- 2.7.4