Browse Source

* scripts/dpkg-divert.pl (checkmanymodes): Change the error message to
say 'commands' instead of 'modes'.
* scripts/dpkg-statoverride.pl (CheckModeConflict): Likewise. Use
gettext for the string.

Guillem Jover 17 years ago
parent
commit
f3a2b6ec89
3 changed files with 9 additions and 2 deletions
  1. 7 0
      ChangeLog
  2. 1 1
      scripts/dpkg-divert.pl
  3. 1 1
      scripts/dpkg-statoverride.pl

+ 7 - 0
ChangeLog

@@ -1,3 +1,10 @@
+2007-05-15  Guillem Jover  <guillem@debian.org>
+
+	* scripts/dpkg-divert.pl (checkmanymodes): Change the error message to
+	say 'commands' instead of 'modes'.
+	* scripts/dpkg-statoverride.pl (CheckModeConflict): Likewise. Use
+	gettext for the string.
+
 2007-05-15  Guillem Jover  <guillem@debian.org>
 
 	* utils/start-stop-daemon.c (daemonize): Use _exit instead of exit, to

+ 1 - 1
scripts/dpkg-divert.pl

@@ -75,7 +75,7 @@ my (@ssrc, @sdest);
 
 sub checkmanymodes {
     return unless $mode;
-    &badusage(sprintf(_g("two modes specified: %s and --%s"), $_, $mode));
+    badusage(sprintf(_g("two commands specified: %s and --%s"), $_, $mode));
 }
 
 while (@ARGV) {

+ 1 - 1
scripts/dpkg-statoverride.pl

@@ -59,7 +59,7 @@ Options:
 
 sub CheckModeConflict {
 	return unless $mode;
-	&badusage("two modes specified: $_ and --$mode");
+	badusage(sprintf(_g("two commands specified: %s and --%s"), $_, $mode));
 }
 
 while (@ARGV) {