summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_install/create
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2001-04-08 16:45:49 +0000
committerMarc Espie <espie@cvs.openbsd.org>2001-04-08 16:45:49 +0000
commit5a14ac2a8fbdc64a6e5a1d31d891a4f0eee033d6 (patch)
treee31007d42dcc89fb9503a1c900c02a5f4ddcb019 /usr.sbin/pkg_install/create
parent40d86c85d5851915c47abba5df4f515c693af109 (diff)
Better error messages: pwarnx function, which works like pwarn, except
it shows a current package name along with the program name, e.g., pkg_add(foo-3.0): some error occurred. A few messages now bear redundant pkgnames, which is much better than doing pkg_add * and being informed that something went slightly wrong somewhere...
Diffstat (limited to 'usr.sbin/pkg_install/create')
-rw-r--r--usr.sbin/pkg_install/create/main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/pkg_install/create/main.c b/usr.sbin/pkg_install/create/main.c
index c8d01e741f7..621bf09b71c 100644
--- a/usr.sbin/pkg_install/create/main.c
+++ b/usr.sbin/pkg_install/create/main.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: main.c,v 1.8 1998/10/13 23:09:50 marc Exp $ */
+/* $OpenBSD: main.c,v 1.9 2001/04/08 16:45:46 espie Exp $ */
#ifndef lint
-static const char *rcsid = "$OpenBSD: main.c,v 1.8 1998/10/13 23:09:50 marc Exp $";
+static const char *rcsid = "$OpenBSD: main.c,v 1.9 2001/04/08 16:45:46 espie Exp $";
#endif
/*
@@ -137,14 +137,14 @@ main(int argc, char **argv)
/* If no packages, yelp */
if (pkgs == start)
- warnx("missing package name"), usage();
+ pwarnx("missing package name"), usage();
*pkgs = NULL;
if (start[1])
- warnx("only one package name allowed ('%s' extraneous)", start[1]),
+ pwarnx("only one package name allowed ('%s' extraneous)", start[1]),
usage();
if (!pkg_perform(start)) {
if (Verbose)
- warnx("package creation failed");
+ pwarnx("package creation failed");
return 1;
}
else