summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2002-05-05 13:09:04 +0000
committersobomax <sobomax@FreeBSD.org>2002-05-05 13:09:04 +0000
commitf4f4b6970d3d5900b8b201b91e5596ff122bb186 (patch)
treeed85150df8e2832e1927c7a494d6e8a9de8f69db /usr.sbin/pkg_install
parent07f69c4f53046ddf88ba2d83a02da39fe7c8dfc1 (diff)
downloadFreeBSD-src-f4f4b6970d3d5900b8b201b91e5596ff122bb186.zip
FreeBSD-src-f4f4b6970d3d5900b8b201b91e5596ff122bb186.tar.gz
Use PLIST_ORIGIN instead of rolling own version using PLIST_COMMENT.
MFC after: 6 days
Diffstat (limited to 'usr.sbin/pkg_install')
-rw-r--r--usr.sbin/pkg_install/create/perform.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.sbin/pkg_install/create/perform.c b/usr.sbin/pkg_install/create/perform.c
index 21bc33e..2c0b0ef 100644
--- a/usr.sbin/pkg_install/create/perform.c
+++ b/usr.sbin/pkg_install/create/perform.c
@@ -99,10 +99,6 @@ pkg_perform(char **pkgs)
}
plist.head = plist.tail = NULL;
- /* Add the origin if asked, at the top */
- if (Origin)
- add_plist(&plist, PLIST_COMMENT, strconcat("ORIGIN:", Origin));
-
/* Stick the dependencies, if any, at the top */
if (Pkgdeps) {
char **deps;
@@ -160,6 +156,11 @@ pkg_perform(char **pkgs)
/* Prefix should add an @cwd to the packing list */
if (Prefix)
add_plist_top(&plist, PLIST_CWD, Prefix);
+
+ /* Add the origin if asked, at the top */
+ if (Origin)
+ add_plist_top(&plist, PLIST_ORIGIN, Origin);
+
/*
* Run down the list and see if we've named it, if not stick in a name
* at the top.
OpenPOWER on IntegriCloud