From f92d0e23dc753ed10afa5a7b1366f157fe63ac07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Quelin?= Date: Fri, 16 Jul 2010 10:30:29 +0000 Subject: extract perl module version when $Full::Package::VERSION is set --- NEWS | 3 +++ configure.ac | 2 +- perl.prov | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 5e3e79b..78a8aab 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,6 @@ +Version 1.106 - 16 July 2010, by Jerome Quelin +- extract perl module version when $Full::Package::VERSION is set + Version 1.105 - 14 July 2010, by Jerome Quelin - support to extract perl runtime requires from meta spec 2 diff --git a/configure.ac b/configure.ac index 36ac112..252ba78 100644 --- a/configure.ac +++ b/configure.ac @@ -4,7 +4,7 @@ # $Id$ AC_PREREQ(2.59) -AC_INIT(rpm-mandriva-setup, 1.105, nanardon@mandriva.org) +AC_INIT(rpm-mandriva-setup, 1.106, nanardon@mandriva.org) AC_CANONICAL_TARGET AM_INIT_AUTOMAKE(1.9 -Wno-portability) AC_CONFIG_SRCDIR 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 -- cgit v1.2.1