diff options
author | bmah <bmah@FreeBSD.org> | 2001-09-18 17:56:44 +0000 |
---|---|---|
committer | bmah <bmah@FreeBSD.org> | 2001-09-18 17:56:44 +0000 |
commit | e0b6c6ba368ae45214caaed6aaf603d11a1e2154 (patch) | |
tree | 5b71bcda08f94cc283aa76a1d68fce59d40d4082 /usr.sbin | |
parent | 8fc7300a95e7a67875fbaddc3d784cab4b6cbfb5 (diff) | |
download | FreeBSD-src-e0b6c6ba368ae45214caaed6aaf603d11a1e2154.zip FreeBSD-src-e0b6c6ba368ae45214caaed6aaf603d11a1e2154.tar.gz |
Support the use of ${PORTSDIR} to find a ports tree INDEX file in
an other-than-default location.
PR: bin/30350
Submitted by: "NINOMIYA Hideyuki <NINOMIYA Hideyuki" <nin@jp.FreeBSD.org>
MFC after: 3 days
Diffstat (limited to 'usr.sbin')
-rwxr-xr-x | usr.sbin/pkg_install/version/pkg_version.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_install/version/pkg_version.pl b/usr.sbin/pkg_install/version/pkg_version.pl index 9c1b91d..c65d2d4 100755 --- a/usr.sbin/pkg_install/version/pkg_version.pl +++ b/usr.sbin/pkg_install/version/pkg_version.pl @@ -45,8 +45,8 @@ $OriginCommand = '/usr/sbin/pkg_info -qo'; $GetPkgNameCommand = 'make -V PKGNAME'; #$IndexFile = "ftp://ftp.freebsd.org/pub/FreeBSD/branches/-current/ports/INDEX"; -$PortsDirectory = '/usr/ports'; -$IndexFile = '/usr/ports/INDEX'; +$PortsDirectory = $ENV{PORTSDIR} || '/usr/ports'; +$IndexFile = "$PortsDirectory/INDEX"; $ShowCommandsFlag = 0; $DebugFlag = 0; $VerboseFlag = 0; |