diff options
author | sobomax <sobomax@FreeBSD.org> | 2000-10-23 07:01:31 +0000 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2000-10-23 07:01:31 +0000 |
commit | 9b13a9d87f9d762af930834991a0e99fefcb5150 (patch) | |
tree | c87847a1fde45e5f178915210741f4f763ddcf7b /usr.sbin/pkg_install/create/perform.c | |
parent | dbf37d2b925089e15674c27ae4cdec103578ba88 (diff) | |
download | FreeBSD-src-9b13a9d87f9d762af930834991a0e99fefcb5150.zip FreeBSD-src-9b13a9d87f9d762af930834991a0e99fefcb5150.tar.gz |
Add "-o" option to pkg_create(1) and pkg_info(1). This option intended to record
a path of the port from which package has been created within FreeBSD Ports
Collection and will be used to improve pkg_version(1) and similar tools.
Reviewed by: ports@FreeBSD.org, jkh
Approved by: jkh
Diffstat (limited to 'usr.sbin/pkg_install/create/perform.c')
-rw-r--r-- | usr.sbin/pkg_install/create/perform.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/pkg_install/create/perform.c b/usr.sbin/pkg_install/create/perform.c index e5555b1..ff38910 100644 --- a/usr.sbin/pkg_install/create/perform.c +++ b/usr.sbin/pkg_install/create/perform.c @@ -85,6 +85,10 @@ pkg_perform(char **pkgs) else suf = "tar"; + /* 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) { if (Verbose && !PlistOnly) @@ -92,7 +96,7 @@ pkg_perform(char **pkgs) while (Pkgdeps) { cp = strsep(&Pkgdeps, " \t\n"); if (*cp) { - add_plist(&plist, PLIST_PKGDEP, cp); + add_plist_top(&plist, PLIST_PKGDEP, cp); if (Verbose && !PlistOnly) printf(" %s", cp); } |