aboutsummaryrefslogtreecommitdiffstats
path: root/perl.prov
diff options
context:
space:
mode:
authorJerome Quelin <jquelin@mageia.org>2011-03-02 17:50:42 +0000
committerJerome Quelin <jquelin@mageia.org>2011-03-02 17:50:42 +0000
commitfd524c2a0adc3204f43e8db1cda805f7c92abd52 (patch)
treeb8c5c5a332e90e843338b78461213205cd227a93 /perl.prov
parent0f1dd7bebbea6916dc5d698099a8a4cbfb829e81 (diff)
downloadrpm-setup-fd524c2a0adc3204f43e8db1cda805f7c92abd52.tar
rpm-setup-fd524c2a0adc3204f43e8db1cda805f7c92abd52.tar.gz
rpm-setup-fd524c2a0adc3204f43e8db1cda805f7c92abd52.tar.bz2
rpm-setup-fd524c2a0adc3204f43e8db1cda805f7c92abd52.tar.xz
rpm-setup-fd524c2a0adc3204f43e8db1cda805f7c92abd52.zip
make v1.118 work with perl modules having a number followed by a _ in1.119
their name, and a fully qualified VERSION (eg $l1_cache::VERSION = ...)
Diffstat (limited to 'perl.prov')
-rwxr-xr-xperl.prov2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl.prov b/perl.prov
index 85b8e81..3b4c795 100755
--- a/perl.prov
+++ b/perl.prov
@@ -159,7 +159,7 @@ sub process_file {
if (m/(\$Revision: (\d+[.0-9]+))/) {
$version= $2;
- } elsif (m/[\'\"]?(\d+[._0-9]+)[\'\"]?/) {
+ } elsif (m/VERSION.*?[\'\"]?(\d+[._0-9]+)[\'\"]?/) {
# look for a static number hard coded in the script