Bladeren bron

dpkg-query: Fix bogus badusage() strings in control_show()

Reported-by: Sven Joachim <svenjoac@gmx.de>
Guillem Jover 14 jaren geleden
bovenliggende
commit
5a4dd39a48
2 gewijzigde bestanden met toevoegingen van 5 en 2 verwijderingen
  1. 3 0
      debian/changelog
  2. 2 2
      src/querycmd.c

+ 3 - 0
debian/changelog

@@ -1,5 +1,8 @@
 dpkg (1.16.7) UNRELEASED; urgency=low
 
+  [ Guillem Jover ]
+  * Fix bogus dpkg-query --control-show badusage() strings.
+
   [ Updated dselect translations ]
   * French (Christian Perrier).
   * German (Sven Joachim).

+ 2 - 2
src/querycmd.c

@@ -723,12 +723,12 @@ control_show(const char *const *argv)
 
   pkgname = *argv++;
   if (!pkgname || !*argv)
-    badusage(_("--%s needs at two arguments"),
+    badusage(_("--%s takes exactly two arguments"),
              cipaction->olong);
 
   control_file = *argv++;
   if (!control_file || *argv)
-    badusage(_("--%s takes at most two arguments"), cipaction->olong);
+    badusage(_("--%s takes exactly two arguments"), cipaction->olong);
 
   pkg_infodb_check_filetype(control_file);