summaryrefslogtreecommitdiff
path: root/dpkg-deb
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2013-08-07 02:39:27 +0200
committerGuillem Jover <guillem@debian.org>2013-08-10 20:13:07 +0200
commitae0e9e05926990db2d7aa22d2bbc20aaaa4c9a3f (patch)
tree17d4b77c6a923923cb84a023645245efda3fe53d /dpkg-deb
parent547dca4c3ff23df5dfa554f1943b371cd7056ee4 (diff)
downloaddpkg-ae0e9e05926990db2d7aa22d2bbc20aaaa4c9a3f.tar.gz
dpkg-deb: Use badusage() instead of ohshit() for usage errors
Diffstat (limited to 'dpkg-deb')
-rw-r--r--dpkg-deb/extract.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/dpkg-deb/extract.c b/dpkg-deb/extract.c
index 066a78673..c800616ce 100644
--- a/dpkg-deb/extract.c
+++ b/dpkg-deb/extract.c
@@ -380,8 +380,10 @@ controlextractvextract(int admin, enum dpkg_tar_options taroptions,
if (!dir) {
if (admin)
dir = EXTRACTCONTROLDIR;
- else ohshit(_("--%s needs a target directory.\n"
- "Perhaps you should be using dpkg --install ?"),cipaction->olong);
+ else
+ badusage(_("--%s needs a target directory.\n"
+ "Perhaps you should be using dpkg --install ?"),
+ cipaction->olong);
} else if (*argv) {
badusage(_("--%s takes at most two arguments (.deb and directory)"),cipaction->olong);
}