summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2011-11-27 00:10:38 +0000
committeragc <agc@pkgsrc.org>2011-11-27 00:10:38 +0000
commitd9a9d398235b17fec559cbb5199594d7b6d74c9b (patch)
treecc8b0f2268f7d237fc9985f886f25c2b32e4bca9 /pkgtools
parent35210e076084c6ade14808b75fc66fdf16633894 (diff)
downloadpkgsrc-d9a9d398235b17fec559cbb5199594d7b6d74c9b.tar.gz
allow for non-standard values of PKG_DBDIR when packaging up binary packages
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkg_tarup/files/pkg_tarup8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgtools/pkg_tarup/files/pkg_tarup b/pkgtools/pkg_tarup/files/pkg_tarup
index f019e5f4f2f..b1e582c359c 100644
--- a/pkgtools/pkg_tarup/files/pkg_tarup
+++ b/pkgtools/pkg_tarup/files/pkg_tarup
@@ -1,6 +1,6 @@
#! @SH@
#
-# $Id: pkg_tarup,v 1.24 2011/03/19 09:44:17 wiz Exp $
+# $Id: pkg_tarup,v 1.25 2011/11/27 00:10:38 agc Exp $
#
# Tar up installed package
#
@@ -136,7 +136,7 @@ create_package()
# It's kind of silly to jump through hoops to get stuff with spaces
# here, since we have no way to pass it to pkg_create, but maybe someone
# will care enough to fix the rest of this.
- PKG_PREFIX=`pkg_info -qp "${PKG}" | ${HEAD} -1 | ${SED} -e's/^@cwd[[:space:]]*//'`
+ PKG_PREFIX=`pkg_info -K ${PKG_DBDIR} -qp "${PKG}" | ${HEAD} -1 | ${SED} -e's/^@cwd[[:space:]]*//'`
PKG_ARGS="${PKG_ARGS} -v"
PKG_ARGS="${PKG_ARGS} -f \"${PLIST}\""
@@ -164,7 +164,7 @@ add_to_list()
IFS="
"
# Get expanded name, and escape quotes
- for rPKG in `pkg_info -e "$1" | ${SED} -e's/\"/\\\"/g'` ; do
+ for rPKG in `pkg_info -K ${PKG_DBDIR} -e "$1" | ${SED} -e's/\"/\\\"/g'` ; do
if [ -z "$rPKG" -o -f "${PKG_DBDIR}/${rPKG}" ] ; then
${ECHO} "Error: package $1 not found"
usage
@@ -220,7 +220,7 @@ add_all_deps_to_list()
oIFS="$IFS"
IFS="
"
- for f in `pkg_info -qf "$1" | ${GREP} @pkgdep | ${SED} -e's/^@pkgdep[[:space:]]*//' ` ; do
+ for f in `pkg_info -K ${PKG_DBDIR} -qf "$1" | ${GREP} @pkgdep | ${SED} -e's/^@pkgdep[[:space:]]*//' ` ; do
add_to_list "$f"
add_all_deps_to_list "$f"
done