diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2000-10-16 17:22:19 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2000-10-16 17:22:19 +0000 |
commit | f8dbf30ca6a34c9cfaa58369882e61e58124b452 (patch) | |
tree | 4642e1f4224c78e74e75fe7c67bfbe6daa50d047 | |
parent | 80f2e900a465814c19deeb0fc8250aedffca0334 (diff) |
Let pkg_add be slightly more informative on tar balls that happen not
to be packages.
Partially based on suggestions made on misc@, thanks guys !
-rw-r--r-- | usr.sbin/pkg_install/add/perform.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.sbin/pkg_install/add/perform.c b/usr.sbin/pkg_install/add/perform.c index 8bc761330ce..c4bafc1f814 100644 --- a/usr.sbin/pkg_install/add/perform.c +++ b/usr.sbin/pkg_install/add/perform.c @@ -1,7 +1,7 @@ -/* $OpenBSD: perform.c,v 1.15 2000/05/01 19:44:10 espie Exp $ */ +/* $OpenBSD: perform.c,v 1.16 2000/10/16 17:22:18 espie Exp $ */ #ifndef lint -static const char *rcsid = "$OpenBSD: perform.c,v 1.15 2000/05/01 19:44:10 espie Exp $"; +static const char *rcsid = "$OpenBSD: perform.c,v 1.16 2000/10/16 17:22:18 espie Exp $"; #endif /* @@ -151,14 +151,16 @@ pkg_do(char *pkg) where_to = Home; if (unpack(pkg_fullname, extract)) { warnx( - "unable to extract table of contents file from `%s' - not a package?", + "unable to extract table of contents from `%s'\n" + "Is this a Package, or a simple .tgz archive ? See tar(1).", pkg_fullname); goto bomb; } cfile = fopen(CONTENTS_FNAME, "r"); if (!cfile) { warnx( - "unable to open table of contents file `%s' - not a package?", + "unable to open table of contents file `%s'\n" + "Is this a Package, or a simple .tgz archive ? See tar(1).", CONTENTS_FNAME); goto bomb; } |