r43786 - in /scripts/KGB: debian/changelog server/KGB

dmn at users.alioth.debian.org dmn at users.alioth.debian.org
Sun Sep 6 15:57:42 UTC 2009


Author: dmn
Date: Sun Sep  6 15:57:36 2009
New Revision: 43786

URL: http://svn.debian.org/wsvn/?sc=1&rev=43786
Log:
use "dir" or "dirs" depending on the number (1 or greater)

Modified:
    scripts/KGB/debian/changelog
    scripts/KGB/server/KGB

Modified: scripts/KGB/debian/changelog
URL: http://svn.debian.org/wsvn/scripts/KGB/debian/changelog?rev=43786&op=diff
==============================================================================
--- scripts/KGB/debian/changelog (original)
+++ scripts/KGB/debian/changelog Sun Sep  6 15:57:36 2009
@@ -1,3 +1,9 @@
+kgb-bot (0.04) UNRELEASED; urgency=low
+
+  * use "dir" or "dirs" depending on the number (1 or greater)
+
+ -- Damyan Ivanov <dmn at debian.org>  Sun, 06 Sep 2009 18:57:59 +0300
+
 kgb-bot (0.03) unstable; urgency=low
 
   [ Damyan Ivanov ]

Modified: scripts/KGB/server/KGB
URL: http://svn.debian.org/wsvn/scripts/KGB/server/KGB?rev=43786&op=diff
==============================================================================
--- scripts/KGB/server/KGB (original)
+++ scripts/KGB/server/KGB Sun Sep  6 15:57:36 2009
@@ -375,7 +375,9 @@
             }
         }
 
-        $path_string = sprintf("%s %d files in %d dirs", $topdir, $changed_files, scalar keys(%dirs));
+        $path_string = sprintf(
+            "%s %d files in %d dir".((keys %dirs > 1) ? "s":""),
+            $topdir, $changed_files, scalar keys(%dirs));
     }
     else
     {




More information about the Pkg-perl-cvs-commits mailing list