diff options
author | gerald <gerald@FreeBSD.org> | 2007-09-16 22:24:12 +0000 |
---|---|---|
committer | gerald <gerald@FreeBSD.org> | 2007-09-16 22:24:12 +0000 |
commit | f1f18cc0575ebe93405850a27271b0b6ff7a669e (patch) | |
tree | b50d33e7366da442ff7c792d5fc9d1476278a530 /Tools | |
parent | aa4d3fb14cb0c3e69aa5d2a383327839e776f54a (diff) | |
download | FreeBSD-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-x | Tools/scripts/resolveportsfromlibs.sh | 4 |
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" |