aboutsummaryrefslogtreecommitdiffstats
path: root/Tools/scripts
diff options
context:
space:
mode:
authorgerald <gerald@FreeBSD.org>2007-09-17 06:24:12 +0800
committergerald <gerald@FreeBSD.org>2007-09-17 06:24:12 +0800
commitf1f18cc0575ebe93405850a27271b0b6ff7a669e (patch)
treeb50d33e7366da442ff7c792d5fc9d1476278a530 /Tools/scripts
parentaa4d3fb14cb0c3e69aa5d2a383327839e776f54a (diff)
downloadfreebsd-ports-gnome-f1f18cc0575ebe93405850a27271b0b6ff7a669e.tar.gz
freebsd-ports-gnome-f1f18cc0575ebe93405850a27271b0b6ff7a669e.tar.zst
freebsd-ports-gnome-f1f18cc0575ebe93405850a27271b0b6ff7a669e.zip
Replace two further instances of /var/db/pkg by $PKG_DBDIR.
Diffstat (limited to 'Tools/scripts')
-rwxr-xr-xTools/scripts/resolveportsfromlibs.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/scripts/resolveportsfromlibs.sh b/Tools/scripts/resolveportsfromlibs.sh
index b88a61186a13..f1ea1345f5a9 100755
--- a/Tools/scripts/resolveportsfromlibs.sh
+++ b/Tools/scripts/resolveportsfromlibs.sh
@@ -137,9 +137,9 @@ for i in $@; do
if [ ${origin} = unknown ]; then
if [ -f ${lib_pathname} ]; then
port=$(pkg_which "${lib_pathname}")
- if [ -f /var/db/pkg/$port/+CONTENTS ]; then
+ if [ -f $PKG_DBDIR/$port/+CONTENTS ]; then
origin=$(grep "@comment ORIGIN:" \
- /var/db/pkg/$port/+CONTENTS \
+ $PKG_DBDIR/$port/+CONTENTS \
| sed -e 's/@comment ORIGIN://')
else
result="${lib} ($i) not found, unknown origin"