summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorgerald <gerald@FreeBSD.org>2007-09-16 22:24:12 +0000
committergerald <gerald@FreeBSD.org>2007-09-16 22:24:12 +0000
commitf1f18cc0575ebe93405850a27271b0b6ff7a669e (patch)
treeb50d33e7366da442ff7c792d5fc9d1476278a530 /Tools
parentaa4d3fb14cb0c3e69aa5d2a383327839e776f54a (diff)
downloadFreeBSD-ports-f1f18cc0575ebe93405850a27271b0b6ff7a669e.zip
FreeBSD-ports-f1f18cc0575ebe93405850a27271b0b6ff7a669e.tar.gz
Replace two further instances of /var/db/pkg by $PKG_DBDIR.
Diffstat (limited to 'Tools')
-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 b88a611..f1ea134 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"
OpenPOWER on IntegriCloud