diff options
author | bdrewery <bdrewery@FreeBSD.org> | 2013-03-28 19:05:28 +0800 |
---|---|---|
committer | bdrewery <bdrewery@FreeBSD.org> | 2013-03-28 19:05:28 +0800 |
commit | f08839fc2e9136f710cd85c4284683cf71bd7288 (patch) | |
tree | b8dc1eb6638cdc385a4ac96f5bd46979748c110c /Tools | |
parent | c1aef1d87bb3ac5a4a750a2cf19707a8c88f0724 (diff) | |
download | freebsd-ports-gnome-f08839fc2e9136f710cd85c4284683cf71bd7288.tar.gz freebsd-ports-gnome-f08839fc2e9136f710cd85c4284683cf71bd7288.tar.zst freebsd-ports-gnome-f08839fc2e9136f710cd85c4284683cf71bd7288.zip |
- Update to 0.1.3 which only brings a -v option to allow
supporting older versions for the stdout/stderr switching
Approved by: Ilya A. Arkhipov <rum1cro@yandex.ru> (maintainer)
With hat: portmgr
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/scripts/dialog4ports.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Tools/scripts/dialog4ports.sh b/Tools/scripts/dialog4ports.sh index 4954650d86f2..18897a267d8e 100644 --- a/Tools/scripts/dialog4ports.sh +++ b/Tools/scripts/dialog4ports.sh @@ -36,4 +36,13 @@ if ! [ -e $DIALOG4PORTS ]; then fi fi -exec $DIALOG4PORTS 2> $OPTIONSFILE >&2 +# Backwards compat with older version which used stdout [<= 0.1.1] (or stderr [0.1.2]). +# Clear environment of PKGNAME or the dialog will show on older versions +# that do not understand -v. +if ! env -u PKGNAME ${DIALOG4PORTS} -v > /dev/null 2>&1; then + exec $DIALOG4PORTS > $OPTIONSFILE 2>&1 +fi + +# Newer versions use stderr to work around a jail issue +# http://lists.freebsd.org/pipermail/freebsd-ports/2013-March/082383.html +exec $DIALOG4PORTS 2> $OPTIONSFILE |