diff options
author | Jérôme Quelin <jquelin@mandriva.org> | 2010-07-16 10:30:29 +0000 |
---|---|---|
committer | Jérôme Quelin <jquelin@mandriva.org> | 2010-07-16 10:30:29 +0000 |
commit | f92d0e23dc753ed10afa5a7b1366f157fe63ac07 (patch) | |
tree | 5e3df4b95afefb15323422f9701aa7436ccbdfa5 /perl.prov | |
parent | b8df618f7c537959d6765c08f4a48f535944a92b (diff) | |
download | rpm-setup-f92d0e23dc753ed10afa5a7b1366f157fe63ac07.tar rpm-setup-f92d0e23dc753ed10afa5a7b1366f157fe63ac07.tar.gz rpm-setup-f92d0e23dc753ed10afa5a7b1366f157fe63ac07.tar.bz2 rpm-setup-f92d0e23dc753ed10afa5a7b1366f157fe63ac07.tar.xz rpm-setup-f92d0e23dc753ed10afa5a7b1366f157fe63ac07.zip |
extract perl module version when $Full::Package::VERSION is set1.106
Diffstat (limited to 'perl.prov')
-rwxr-xr-x | perl.prov | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -146,10 +146,11 @@ sub process_file { #ExtUtils/Install.pm:$VERSION = substr q$Revision$, 10; #CGI/Apache.pm:$VERSION = (qw$Revision$)[1]; #DynaLoader.pm:$VERSION = $VERSION = "1.03"; # avoid typo warning + #$Locale::Maketext::Simple::VERSION = '0.21'; if ( ($package) && - (m/^(.*;)?\s*((my|our)\s+)?\$VERSION\s*=\s+/) + (m/^(.*;)?\s*((my|our)\s+)?\$(${package}::)?VERSION\s*=\s+/) ) { # first see if the version string contains the string |