summaryrefslogtreecommitdiff
path: root/src/querycmd.c
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2011-01-16 07:23:41 +0100
committerGuillem Jover <guillem@debian.org>2011-01-16 10:22:40 +0100
commit7b561513784490d08c0f890ba58a1a2aa63cf62b (patch)
treee83ad92dc64c92d353549c740f2a157def6dacec /src/querycmd.c
parent626560b31133376bfb5593770b2ee1fc83931c29 (diff)
downloaddpkg-7b561513784490d08c0f890ba58a1a2aa63cf62b.tar.gz
dpkg-query: Use ohshit() for not installed package in --control-path
The use of badusage() here is not appropriate.
Diffstat (limited to 'src/querycmd.c')
-rw-r--r--src/querycmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/querycmd.c b/src/querycmd.c
index 227f83479..f88cec1d9 100644
--- a/src/querycmd.c
+++ b/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);