summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install/lib
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2002-05-05 12:54:11 +0000
committersobomax <sobomax@FreeBSD.org>2002-05-05 12:54:11 +0000
commit07f69c4f53046ddf88ba2d83a02da39fe7c8dfc1 (patch)
tree3391eca6674b1b492885326500087d24599dd3a4 /usr.sbin/pkg_install/lib
parent49d3c06cb73a43de5b89367d8d3a8c3256cd6884 (diff)
downloadFreeBSD-src-07f69c4f53046ddf88ba2d83a02da39fe7c8dfc1.zip
FreeBSD-src-07f69c4f53046ddf88ba2d83a02da39fe7c8dfc1.tar.gz
Handle PLIST_ORIGIN properly.
Poked by: kris Pointy hat grabbed by: sobomax MFC after: 6 days
Diffstat (limited to 'usr.sbin/pkg_install/lib')
-rw-r--r--usr.sbin/pkg_install/lib/plist.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.sbin/pkg_install/lib/plist.c b/usr.sbin/pkg_install/lib/plist.c
index e46d6de..648b67c 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);
OpenPOWER on IntegriCloud