diff options
author | jkh <jkh@FreeBSD.org> | 1995-04-10 08:01:52 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1995-04-10 08:01:52 +0000 |
commit | 3e496240b4efc0f4e8498ffe6ad9f4cce26624ac (patch) | |
tree | c9300daed6e6af52adcf40f37e245ac8e1e3a9e0 /usr.sbin/pkg_install/create/perform.c | |
parent | 2c50cf3c25ea1846fa283f1da0972560b8b14dd9 (diff) | |
download | FreeBSD-src-3e496240b4efc0f4e8498ffe6ad9f4cce26624ac.zip FreeBSD-src-3e496240b4efc0f4e8498ffe6ad9f4cce26624ac.tar.gz |
Neither of these tools really told you what you needed to know neatly
and succinctly in verbose mode. I hope people find this more to their
liking.
Diffstat (limited to 'usr.sbin/pkg_install/create/perform.c')
-rw-r--r-- | usr.sbin/pkg_install/create/perform.c | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/usr.sbin/pkg_install/create/perform.c b/usr.sbin/pkg_install/create/perform.c index fb72a51..f83f309 100644 --- a/usr.sbin/pkg_install/create/perform.c +++ b/usr.sbin/pkg_install/create/perform.c @@ -1,5 +1,5 @@ #ifndef lint -static const char *rcsid = "$Id: perform.c,v 1.14 1994/12/06 00:51:37 jkh Exp $"; +static const char *rcsid = "$Id: perform.c,v 1.15 1995/04/09 15:05:00 jkh Exp $"; #endif /* @@ -63,13 +63,20 @@ pkg_perform(char **pkgs) suffix = "tgz"; /* Stick the dependencies, if any, at the top */ - while (Pkgdeps) { - cp = strsep(&Pkgdeps, " \t\n"); - if (*cp) { - add_plist(&plist, PLIST_PKGDEP, cp); + if (Pkgdeps) { + if (Verbose) + printf("Registering depends:"); + while (Pkgdeps) { + cp = strsep(&Pkgdeps, " \t\n"); + if (*cp) { + add_plist(&plist, PLIST_PKGDEP, cp); + if (Verbose) + printf(" %s", cp); + } } + if (Verbose) + printf(".\n"); } - /* Slurp in the packing list */ read_plist(&plist, pkg_in); |