From: Nathan Wagner Date: Mon, 3 Dec 2018 11:54:00 +0000 (+0000) Subject: fix syncfs plural test X-Git-Tag: v0.3.6~10 X-Git-Url: https://pd.if.org/git/?p=zpackage;a=commitdiff_plain;h=5985a11dc2ed3b0f3440a689333109a6984d73f7 fix syncfs plural test --- diff --git a/zpm-syncfs.c b/zpm-syncfs.c index 3c0eebb..e3d9dbb 100644 --- a/zpm-syncfs.c +++ b/zpm-syncfs.c @@ -1499,7 +1499,7 @@ int main(int ac, char **av) { fprintf(stderr, "file ops: %d\n", conf.ops_total); if (conf.ops_remove > 0) { if (conf.verbose) { - fprintf(stderr, "removing %d file%s\n", conf.ops_remove, conf.ops_remove > 0 ? "s" : ""); + fprintf(stderr, "removing %d file%s\n", conf.ops_remove, conf.ops_remove > 1 ? "s" : ""); } conf.reverse = 1; conf.ops_completed = 0; @@ -1513,7 +1513,7 @@ int main(int ac, char **av) { if (conf.ops_update > 0) { if (conf.verbose) { - fprintf(stderr, "updating %d file%s\n", conf.ops_update, conf.ops_update > 0 ? "s" : ""); + fprintf(stderr, "updating %d file%s\n", conf.ops_update, conf.ops_update > 1 ? "s" : ""); } conf.reverse = 0; conf.ops_completed = 0; @@ -1527,7 +1527,7 @@ int main(int ac, char **av) { if (conf.ops_install > 0) { if (conf.verbose) { - fprintf(stderr, "installing %d file%s\n", conf.ops_install, conf.ops_install > 0 ? "s" : ""); + fprintf(stderr, "installing %d file%s\n", conf.ops_install, conf.ops_install > 1 ? "s" : ""); } conf.reverse = 0; conf.ops_completed = 0;