Browse Source

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

The use of badusage() here is not appropriate.
Guillem Jover 15 years ago
parent
commit
7b56151378
1 changed files with 1 additions and 1 deletions
  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);
   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)
     control_path_file(pkg, control_file);