summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2017-08-23 09:02:23 +0300
committerTimo Teräs <timo.teras@iki.fi>2017-08-23 09:03:35 +0300
commite6e90a646320e97ebb7f7e8363bf68e7aaf1aaea (patch)
treee59d73d3fd12e1a7c426b93dbd37315b13bff3da /src
parent16336ba2655db7f1df78437deb6de84d16c7c3c1 (diff)
downloadapk-tools-e6e90a646320e97ebb7f7e8363bf68e7aaf1aaea.tar.gz
apk-tools-e6e90a646320e97ebb7f7e8363bf68e7aaf1aaea.tar.bz2
apk-tools-e6e90a646320e97ebb7f7e8363bf68e7aaf1aaea.tar.xz
apk-tools-e6e90a646320e97ebb7f7e8363bf68e7aaf1aaea.zip
commit: proper singular/plural for 'error(s)' in commit message
based on github pull request #5
Diffstat (limited to 'src')
-rw-r--r--src/commit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commit.c b/src/commit.c
index fa8267d..9efae1f 100644
--- a/src/commit.c
+++ b/src/commit.c
@@ -350,7 +350,8 @@ all_done:
if (!db->performing_self_upgrade) {
if (errors)
- snprintf(buf, sizeof(buf), "%d errors;", errors);
+ snprintf(buf, sizeof(buf), "%d error%s;", errors,
+ errors > 1 ? "s" : "");
else
strcpy(buf, "OK:");
if (apk_verbosity > 1) {