1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

Replace two further instances of /var/db/pkg by $PKG_DBDIR.

This commit is contained in:
Gerald Pfeifer 2007-09-16 22:24:12 +00:00
parent d170262d35
commit 957d2a35c5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=199581

View File

@ -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"