From 824e83ed3e26f625bf476a6a5dacc6003cbc6e96 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Sat, 24 Nov 2012 13:10:35 +0100 Subject: 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(-) (limited to 'gbp/scripts') 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) -- cgit v1.2.3