The following commit has been merged in the master branch:
commit a9761ebe6bd5b99bece2a156e717b2af94d0eab0
Author: Guillem Jover <[email protected]>
Date: Sun Jul 12 21:38:16 2009 +0200
dpkg: Coalesce similar “takes no arguments” strings
Move the option name to an argument to reuse existing translations.
diff --git a/src/trigcmd.c b/src/trigcmd.c
index a377438..d924fd1 100644
--- a/src/trigcmd.c
+++ b/src/trigcmd.c
@@ -200,7 +200,8 @@ main(int argc, const char *const *argv)
if (f_check) {
if (*argv)
- badusage(_("--check-supported takes no arguments"));
+ badusage(_("--%s takes no arguments"),
+ "check-supported");
do_check();
}
diff --git a/src/update.c b/src/update.c
index d7737b5..60fcc18 100644
--- a/src/update.c
+++ b/src/update.c
@@ -98,7 +98,8 @@ void updateavailable(const char *const *argv) {
}
void forgetold(const char *const *argv) {
- if (*argv) badusage(_("--forget-old-unavail takes no arguments"));
+ if (*argv)
+ badusage(_("--%s takes no arguments"), cipaction->olong);
warning(_("obsolete '--%s' option, unavailable packages are automatically
cleaned up."),
cipaction->olong);
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]