summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2010-05-23 10:54:39 +0300
committerPanu Matilainen <pmatilai@redhat.com>2010-06-29 13:18:52 +0300
commit7caf820c778351baa237f04cb652d55f24811349 (patch)
treed68c91e71251f47fb9e15f98a2a67620692b20fa /scripts
parent6a37f166a81c302e18eb987ad6d42a7dd930ae9a (diff)
downloadlibrpm-tizen-7caf820c778351baa237f04cb652d55f24811349.tar.gz
librpm-tizen-7caf820c778351baa237f04cb652d55f24811349.tar.bz2
librpm-tizen-7caf820c778351baa237f04cb652d55f24811349.zip
Extract dependencies from "use base qw"..."" and "use base qw'...'".
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/perl.req4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/perl.req b/scripts/perl.req
index 1b7286a6a..07c549106 100755
--- a/scripts/perl.req
+++ b/scripts/perl.req
@@ -173,7 +173,7 @@ sub process_file {
['"]?([^; '"\t#]*)['"]?[\t; ]
# the syntax for 'use' allows version requirements
# the latter part is for "use base qw(Foo)" and friends special case
- \s*($modver_re|(qw\s*[(\/]\s*|['"])[^)\/"'\$]*?\s*[)\/"'])?
+ \s*($modver_re|(qw\s*[(\/'"]\s*|['"])[^)\/"'\$]*?\s*[)\/"'])?
/x)
) {
my ($whitespace, $statement, $module, $version) = ($1, $2, $3, $4);
@@ -264,7 +264,7 @@ sub process_file {
# use base qw(Foo) dependencies
if ($statement eq "use" && $module eq "base") {
add_require($module, undef);
- if ($version =~ /^qw\s*[(\/]\s*([^)\/]+?)\s*[)\/]/) {
+ if ($version =~ /^qw\s*[(\/'"]\s*([^)\/"']+?)\s*[)\/"']/) {
add_require($_, undef) for split(' ', $1);
}
elsif ($version =~ /(["'])([^"']+)\1/) {