Pārlūkot izejas kodu

dpkg-query: Use ohshit() for not installed package in --control-path

The use of badusage() here is not appropriate.
Guillem Jover 15 gadi atpakaļ
vecāks
revīzija
7b56151378
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/querycmd.c

+ 1 - 1
src/querycmd.c

@@ -622,7 +622,7 @@ control_path(const char *const *argv)
 
 
   pkg = pkg_db_find(pkg_name);
   pkg = pkg_db_find(pkg_name);
   if (pkg->status == stat_notinstalled)
   if (pkg->status == stat_notinstalled)
-    badusage(_("Package `%s' is not installed.\n"), pkg->name);
+    ohshit(_("Package `%s' is not installed.\n"), pkg->name);
 
 
   if (control_file)
   if (control_file)
     control_path_file(pkg, control_file);
     control_path_file(pkg, control_file);