]>
Commit | Line | Data |
---|---|---|
aece9261 | 1 | diff -urN rpm-4.0.2/scripts/perl.prov rpm-4.0.2-grabba/scripts/perl.prov |
2 | --- rpm-4.0.2/scripts/perl.prov Wed Feb 27 13:04:35 2002 | |
3 | +++ rpm-4.0.2-grabba/scripts/perl.prov Wed Feb 27 13:47:06 2002 | |
4 | @@ -116,7 +116,7 @@ | |
5 | # package name so we report all namespaces as if they were | |
6 | # provided packages (really ugly). | |
7 | ||
8 | - if (m/^\s*package\s+([_:a-zA-Z0-9]+)\s*;/) { | |
9 | + if (m/^\s*package\s+([_:a-zA-Z0-9]+)\s*;/ && !$require{$1}) { | |
10 | $package=$1; | |
11 | undef $version; | |
12 | $require{$package}=undef; | |
13 | @@ -132,10 +132,15 @@ | |
14 | #ExtUtils/Install.pm:$VERSION = substr q$Revision$, 10; | |
15 | #CGI/Apache.pm:$VERSION = (qw$Revision$)[1]; | |
16 | #DynaLoader.pm:$VERSION = $VERSION = "1.03"; # avoid typo warning | |
17 | + #Cwd.pm:our $VERSION = '2.04'; | |
18 | + | |
19 | + # here is example of VERSION line from RPC::PlClient module | |
20 | + | |
21 | + # RPC/PlClient.pm:$RPC::PlClient::VERSION = '0.2016'; | |
22 | ||
23 | if ( | |
24 | ($package) && | |
25 | - (m/^\s*\$VERSION\s*=\s+/) | |
26 | + (m/^\s*(our)?\s*\$(${package}::)?VERSION\s*=/) | |
27 | ) { | |
28 | ||
29 | # first see if the version string contains the string |