aboutsummaryrefslogtreecommitdiffstats
path: root/perl.prov
diff options
context:
space:
mode:
authorJérôme Quelin <jquelin@mandriva.org>2010-07-16 10:30:29 +0000
committerJérôme Quelin <jquelin@mandriva.org>2010-07-16 10:30:29 +0000
commitf92d0e23dc753ed10afa5a7b1366f157fe63ac07 (patch)
tree5e3df4b95afefb15323422f9701aa7436ccbdfa5 /perl.prov
parentb8df618f7c537959d6765c08f4a48f535944a92b (diff)
downloadrpm-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-xperl.prov3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl.prov b/perl.prov
index 3113cb2..b2748e8 100755
--- a/perl.prov
+++ b/perl.prov
@@ -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