diff options
| author | Maxim Sobolev <sobomax@FreeBSD.org> | 2002-05-05 12:54:11 +0000 |
|---|---|---|
| committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2002-05-05 12:54:11 +0000 |
| commit | 63d4f9853dc7a4f65188ff5cec0dfe3c1b3ed649 (patch) | |
| tree | 3391eca6674b1b492885326500087d24599dd3a4 | |
| parent | 2ca08884e0695ed4c663b327dbb04b542d12c8be (diff) | |
Notes
| -rw-r--r-- | usr.sbin/pkg_install/info/show.c | 5 | ||||
| -rw-r--r-- | usr.sbin/pkg_install/lib/plist.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/usr.sbin/pkg_install/info/show.c b/usr.sbin/pkg_install/info/show.c index 7421fbd6d069..1931ae5e9bf8 100644 --- a/usr.sbin/pkg_install/info/show.c +++ b/usr.sbin/pkg_install/info/show.c @@ -167,6 +167,11 @@ show_plist(const char *title, Package *plist, plist_t type, Boolean showall) p->name); break; + case PLIST_ORIGIN: + printf(Quiet ? "@comment ORIGIN:%s\n" : + "\tPackage origin: %s\n", p->name); + break; + default: cleanup(0); errx(2, __FUNCTION__ ": unknown command type %d (%s)", p->type, p->name); diff --git a/usr.sbin/pkg_install/lib/plist.c b/usr.sbin/pkg_install/lib/plist.c index e46d6deda593..648b67cffee7 100644 --- a/usr.sbin/pkg_install/lib/plist.c +++ b/usr.sbin/pkg_install/lib/plist.c @@ -371,6 +371,10 @@ write_plist(Package *pkg, FILE *fp) fprintf(fp, "%coption %s\n", CMD_CHAR, plist->name); break; + case PLIST_ORIGIN: + fprintf(fp, "%ccomment ORIGIN:%s\n", CMD_CHAR, plist->name); + break; + default: cleanup(0); errx(2, __FUNCTION__ ": unknown command type %d (%s)", plist->type, plist->name); |
