diff options
Diffstat (limited to 'usr.sbin/pkg_install/info/show.c')
-rw-r--r-- | usr.sbin/pkg_install/info/show.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/usr.sbin/pkg_install/info/show.c b/usr.sbin/pkg_install/info/show.c index 95550d1a..7421fbd 100644 --- a/usr.sbin/pkg_install/info/show.c +++ b/usr.sbin/pkg_install/info/show.c @@ -312,21 +312,17 @@ show_cksum(const char *title, Package *plist) void show_origin(const char *title, Package *plist) { - PackingList p; if (!Quiet) printf("%s%s", InfoPrefix, title); - for (p = plist->head; p != NULL; p = p->next) - if (p->type == PLIST_COMMENT && !strncmp(p->name, "ORIGIN:", 7)) { - printf("%s\n", p->name + 7); - break; - } + printf("%s\n", plist->origin != NULL ? plist->origin : ""); } /* Show revision number of the packing list */ void show_fmtrev(const char *title, Package *plist) { + if (!Quiet) printf("%s%s", InfoPrefix, title); printf("%d.%d\n", plist->fmtver_maj, plist->fmtver_mnr); |