summaryrefslogtreecommitdiff
path: root/pkgtools/pkgchk/files/pkgchk.sh
diff options
context:
space:
mode:
authorabs <abs>2001-12-27 19:45:01 +0000
committerabs <abs>2001-12-27 19:45:01 +0000
commitd582e71730752585f502a0c9d6c579e8f219f103 (patch)
tree57f2ac510b76ed1b4363e08d05de1b9471c680da /pkgtools/pkgchk/files/pkgchk.sh
parent4702877126e7f58e538491988587a110222500b2 (diff)
downloadpkgsrc-d582e71730752585f502a0c9d6c579e8f219f103.tar.gz
Updated pkgchk to 1.22
When comparing BUILD_VERSION, we _really_ do not care what PKGSRCDIR was
Diffstat (limited to 'pkgtools/pkgchk/files/pkgchk.sh')
-rwxr-xr-xpkgtools/pkgchk/files/pkgchk.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgtools/pkgchk/files/pkgchk.sh b/pkgtools/pkgchk/files/pkgchk.sh
index f70ffa71564..e28b039c48d 100755
--- a/pkgtools/pkgchk/files/pkgchk.sh
+++ b/pkgtools/pkgchk/files/pkgchk.sh
@@ -1,6 +1,6 @@
#!/bin/sh -e
#
-# $Id: pkgchk.sh,v 1.24 2001/12/24 14:15:56 abs Exp $
+# $Id: pkgchk.sh,v 1.25 2001/12/27 19:45:01 abs Exp $
#
# TODO: Handle updates with dependencies via binary packages
@@ -52,7 +52,7 @@ check_packages_installed()
else
if [ -n "$opt_B" ];then
current_build_ver=`get_build_ver`
- installed_build_ver=`cat /var/db/pkg/$PKGNAME/+BUILD_VERSION | sed "s:^${real_pkgsrcdir}/::"`
+ installed_build_ver=`cat /var/db/pkg/$PKGNAME/+BUILD_VERSION | sed "s:^.*/pkgsrc/::"`
if [ x"$current_build_ver" != x"$installed_build_ver" ];then
echo "$PKGNAME: build version information mismatch"
MISMATCH_TODO="$MISMATCH_TODO $PKGNAME"