]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
When using @cwd %%FOO%%, we must ensure to return in the original
authorKirill Ponomarev <krion@FreeBSD.org>
Sat, 7 Jan 2006 22:10:58 +0000 (22:10 +0000)
committerKirill Ponomarev <krion@FreeBSD.org>
Sat, 7 Jan 2006 22:10:58 +0000 (22:10 +0000)
commitce036f409162b1c2c5056f4594eedd824fcb2421
treee5c518889fdd186fddcfbdcde20ffa538eeab4cd
parent1851bd711a1cdd6d3446137c805de1cc9610fed3
When using @cwd %%FOO%%, we must ensure to return in the original
prefix later, but doing so with @cwd %%OLDPREFIX%% (having
PLIST_SUB+="OLDPREFIX=${PREFIX}") hardcodes the value in the packing
list. That's not really a problem when dealing with ports but that's
a problem with packages since pkg_add -p option only overrides the
first @cwd occurrence.

This patch allow us to use @cwd without any argument. If no
directory argument is given, it will set current working directory
to the first prefix given by the @cwd command.

PR: bin/77212
Submitted by: flz
usr.sbin/pkg_install/add/extract.c
usr.sbin/pkg_install/create/perform.c
usr.sbin/pkg_install/create/pkg_create.1
usr.sbin/pkg_install/create/pl.c
usr.sbin/pkg_install/info/show.c
usr.sbin/pkg_install/lib/plist.c