summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2002-09-15 21:57:52 +0000
committerKris Kennaway <kris@FreeBSD.org>2002-09-15 21:57:52 +0000
commit538513b7daa09adcc837c93da0af102b96f79102 (patch)
tree577e8bec70792a2d4ace74819e28a9959db46d43
parentAdd PKG_PATH so packages can be found automatically (not sure what caused (diff)
Use PKGSUFFIX from buildenv
Notes
Notes: svn path=/head/; revision=66386
-rwxr-xr-xTools/portbuild/scripts/pdispatch6
1 files changed, 5 insertions, 1 deletions
diff --git a/Tools/portbuild/scripts/pdispatch b/Tools/portbuild/scripts/pdispatch
index 38ed4ac33bb2..f103103fb111 100755
--- a/Tools/portbuild/scripts/pdispatch
+++ b/Tools/portbuild/scripts/pdispatch
@@ -8,6 +8,8 @@
pb=/var/portbuild
. ${pb}/portbuild.conf
+. ${pb}/scripts/buildenv
+
# wait 4 hours maximum
timeout=14400
@@ -15,10 +17,12 @@ branch=$1
command=$2
shift 2
+buildenv ${pb} ${branch}
+
# ssh -x doesn't work on some machines
unset DISPLAY
-pkgname=$(basename $1 .tgz)
+pkgname=$(basename $1 ${PKGSUFFIX})
buildroot=$(dirname $(dirname $0))
if grep -qxF $pkgname ${buildroot}/${branch}/duds; then