summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-08-10 17:58:10 +0000
committerrillig <rillig@pkgsrc.org>2006-08-10 17:58:10 +0000
commitdd2923d1565489029d8f5d001e2178783e163c97 (patch)
tree712039dc38e28be53aecca804528041e61afbefd /mk
parentfedf45c01e302dab3521b046a4231a45654f3c35 (diff)
downloadpkgsrc-dd2923d1565489029d8f5d001e2178783e163c97.tar.gz
When installing packages, first "cd $USR_PKGSRC" to be independent of
the current working directory. See http://mail-index.netbsd.org/tech-pkg/2006/08/08/0006.html
Diffstat (limited to 'mk')
-rw-r--r--mk/bulk/upload4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/bulk/upload b/mk/bulk/upload
index 20c8b19af72..9b588b5527a 100644
--- a/mk/bulk/upload
+++ b/mk/bulk/upload
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: upload,v 1.33 2006/08/01 13:16:41 rillig Exp $
+# $NetBSD: upload,v 1.34 2006/08/10 17:58:10 rillig Exp $
#
# Upload non-restricted binary pkgs to ftp server
@@ -118,7 +118,7 @@ install_required()
if [ "${verbose}" = "yes" ]; then
echo "upload> Installing ${pkg}"
fi
- ( cd "$pkg" && ${BMAKE} bulk-install) \
+ (cd "$USR_PKGSRC" && cd "$pkg" && ${BMAKE} bulk-install) \
|| {
echo "upload> ERROR: Unable to install required package $pkg!" 1>&2
echo " Bailing out -- you're on your own." 1>&2