diff options
author | wiz <wiz@pkgsrc.org> | 2006-07-11 12:52:14 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2006-07-11 12:52:14 +0000 |
commit | 59009e94f96407b128000c8cdf782c86d41b198d (patch) | |
tree | e9decb6654639bda6de32cc1f1685b8f9830baf7 /pkgtools | |
parent | 0780228787e6152963af53aceb6e35ff4efc9ba1 (diff) | |
download | pkgsrc-59009e94f96407b128000c8cdf782c86d41b198d.tar.gz |
1.8:
finddepends: Quote package names when they are used as patterns.
Based on an idea by dillo.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/revbump/Makefile | 5 | ||||
-rw-r--r-- | pkgtools/revbump/files/finddepends | 6 |
2 files changed, 5 insertions, 6 deletions
diff --git a/pkgtools/revbump/Makefile b/pkgtools/revbump/Makefile index cc39648d713..871c5fb2f3f 100644 --- a/pkgtools/revbump/Makefile +++ b/pkgtools/revbump/Makefile @@ -1,7 +1,6 @@ -# $NetBSD: Makefile,v 1.11 2006/05/06 03:38:06 reed Exp $ -# +# $NetBSD: Makefile,v 1.12 2006/07/11 12:52:14 wiz Exp $ -DISTNAME= revbump-1.7 +DISTNAME= revbump-1.8 CATEGORIES= pkgtools MASTER_SITES= # empty DISTFILES= # empty diff --git a/pkgtools/revbump/files/finddepends b/pkgtools/revbump/files/finddepends index f56c087d8b0..a406b3305c7 100644 --- a/pkgtools/revbump/files/finddepends +++ b/pkgtools/revbump/files/finddepends @@ -1,7 +1,7 @@ #!@PERL@ -w # -*- perl -*- # -# $NetBSD: finddepends,v 1.4 2006/04/13 18:58:17 wiz Exp $ +# $NetBSD: finddepends,v 1.5 2006/07/11 12:52:14 wiz Exp $ # # Copyright (c) 2006 The NetBSD Foundation, Inc. # @@ -88,7 +88,7 @@ while ($pattern = pop @searchlist) { # print "* Looking for $pattern\n"; for $key (keys %bl3content) { # print "searching $key ($bl3content{$key})\n\n"; - if ($bl3content{$key} =~ m/$pattern/) { + if ($bl3content{$key} =~ m/\Q$pattern/) { # print "\n\n ******** MATCH $key \n\n"; # print "** $pattern found in $key\n"; # print "** BUMP $key\n"; @@ -120,7 +120,7 @@ for $makefile (@makefiles) { close OUT; $found = 0; for $pattern (@bl3result) { - if ($content =~ m/$pattern/) { + if ($content =~ m/\Q$pattern/) { $found = 1; last; } |