diff options
Diffstat (limited to 'pkgtools/verifypc/files')
-rw-r--r-- | pkgtools/verifypc/files/verifypc.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgtools/verifypc/files/verifypc.sh b/pkgtools/verifypc/files/verifypc.sh index d19e97202b4..fabed6a2f19 100644 --- a/pkgtools/verifypc/files/verifypc.sh +++ b/pkgtools/verifypc/files/verifypc.sh @@ -1,6 +1,6 @@ #!@SH@ # -# $NetBSD: verifypc.sh,v 1.2 2005/10/02 09:29:29 jmmv Exp $ +# $NetBSD: verifypc.sh,v 1.3 2005/10/03 09:45:45 jmmv Exp $ # # verifypc - Sanity check package dependencies according to pkg-config # Copyright (c) 2005 Julio M. Merino Vidal <jmmv@NetBSD.org> @@ -91,7 +91,7 @@ check_match() { fi pkgdep=$(echo ${dep} | cut -d : -f 1 | sed 's|>=|-|;s|>|-|') - pkgname=$(echo ${pkgdep} | cut -d - -f 1) + pkgname=$(echo ${pkgdep} | sed 's|^\(.*\)-\([0-9].*\)$|\1|') out=$(pkg_admin pmatch "${pkgname}${pcop}${pcver}" "${pkgdep}" 2>&1) ret=$? |