diff options
author | jmmv <jmmv@pkgsrc.org> | 2005-10-03 09:45:45 +0000 |
---|---|---|
committer | jmmv <jmmv@pkgsrc.org> | 2005-10-03 09:45:45 +0000 |
commit | 47b9407ba8c896bea4e5f843b766f7af316ad57f (patch) | |
tree | 454e4cb5b13d7030834343be0f5a62e9731c4756 /pkgtools/verifypc/files | |
parent | ba0f92621a9416b213f49d5e57bb55e44decf573 (diff) | |
download | pkgsrc-47b9407ba8c896bea4e5f843b766f7af316ad57f.tar.gz |
Update to 1.2:
- Package names can have dashes in them, so use a correct regexp to extract
the package name from a dependency specification.
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=$? |