diff options
author | marko <marko@FreeBSD.org> | 2000-09-25 07:27:05 +0000 |
---|---|---|
committer | marko <marko@FreeBSD.org> | 2000-09-25 07:27:05 +0000 |
commit | 61a769a2854e360c43dd1ad1edca0e70d8f8316f (patch) | |
tree | 721e2dacc28b9b6578a508ab397a4875399d9579 /usr.sbin | |
parent | 74e251e27de32a179025b156ea0b24e636a4c40c (diff) | |
download | FreeBSD-src-61a769a2854e360c43dd1ad1edca0e70d8f8316f.zip FreeBSD-src-61a769a2854e360c43dd1ad1edca0e70d8f8316f.tar.gz |
Make the ``-r'' option actually do something :)
Also tidy up it's output.
Approved by: jkh
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pkg_install/info/perform.c | 2 | ||||
-rw-r--r-- | usr.sbin/pkg_install/info/show.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/pkg_install/info/perform.c b/usr.sbin/pkg_install/info/perform.c index cbcb3d9..81c16f1 100644 --- a/usr.sbin/pkg_install/info/perform.c +++ b/usr.sbin/pkg_install/info/perform.c @@ -179,6 +179,8 @@ pkg_do(char *pkg) printf("%sInformation for %s:\n\n", InfoPrefix, pkg); if (Flags & SHOW_COMMENT) show_file("Comment:\n", COMMENT_FNAME); + if (Flags & SHOW_REQUIRE) + show_plist("Depends on:\n", &plist, PLIST_PKGDEP); if ((Flags & SHOW_REQBY) && !isemptyfile(REQUIRED_BY_FNAME)) show_file("Required by:\n", REQUIRED_BY_FNAME); if (Flags & SHOW_DESC) diff --git a/usr.sbin/pkg_install/info/show.c b/usr.sbin/pkg_install/info/show.c index 6d638c6..f468be6 100644 --- a/usr.sbin/pkg_install/info/show.c +++ b/usr.sbin/pkg_install/info/show.c @@ -152,7 +152,7 @@ show_plist(char *title, Package *plist, plist_t type) break; case PLIST_PKGDEP: - printf(Quiet ? "@pkgdep %s\n" : "\tPackage depends on: %s\n", p->name); + printf(Quiet ? "@pkgdep %s\n" : "\t%s\n", p->name); break; case PLIST_MTREE: |