1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-05 12:56:08 +00:00

Use PLIST_ORIGIN instead of rolling own version using PLIST_COMMENT.

MFC after:	6 days
This commit is contained in:
Maxim Sobolev 2002-05-05 13:09:04 +00:00
parent 63d4f9853d
commit 2dc0025a87
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=96066

View File

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