1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-17 15:27:36 +00:00

Make the ``-r'' option actually do something :)

Also tidy up it's output.

Approved by:	jkh
This commit is contained in:
Mark Ovens 2000-09-25 07:27:05 +00:00
parent 8ad4728c5d
commit 67a81e7a7a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=66339
2 changed files with 3 additions and 1 deletions

View File

@ -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)

View File

@ -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: