pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/verifypc Update to 1.2:
details: https://anonhg.NetBSD.org/pkgsrc/rev/b5f0ab99ffa1
branches: trunk
changeset: 500137:b5f0ab99ffa1
user: jmmv <jmmv%pkgsrc.org@localhost>
date: Mon Oct 03 09:45:45 2005 +0000
description:
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:
pkgtools/verifypc/Makefile | 4 ++--
pkgtools/verifypc/files/verifypc.sh | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diffs (33 lines):
diff -r e3801392e3aa -r b5f0ab99ffa1 pkgtools/verifypc/Makefile
--- a/pkgtools/verifypc/Makefile Mon Oct 03 05:10:03 2005 +0000
+++ b/pkgtools/verifypc/Makefile Mon Oct 03 09:45:45 2005 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.2 2005/10/02 09:29:29 jmmv Exp $
+# $NetBSD: Makefile,v 1.3 2005/10/03 09:45:45 jmmv Exp $
#
-DISTNAME= verifypc-1.1
+DISTNAME= verifypc-1.2
CATEGORIES= pkgtools
MASTER_SITES= # empty
DISTFILES= # empty
diff -r e3801392e3aa -r b5f0ab99ffa1 pkgtools/verifypc/files/verifypc.sh
--- a/pkgtools/verifypc/files/verifypc.sh Mon Oct 03 05:10:03 2005 +0000
+++ b/pkgtools/verifypc/files/verifypc.sh Mon Oct 03 09:45:45 2005 +0000
@@ -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@localhost>
@@ -91,7 +91,7 @@
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=$?
Home |
Main Index |
Thread Index |
Old Index