]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- fixed bug, which could cause providing "perl()" auto/ac/perl-5_8_4-10 auto/ac/perl-5_8_5-2 auto/ac/perl-5_8_5-3 auto/ac/perl-5_8_5-4 auto/ac/perl-5_8_5-5 auto/ac/perl-5_8_5-6 auto/ac/perl-5_8_6-1 auto/ac/perl-5_8_6-2 auto/ac/perl-5_8_6-3 auto/ac/perl-5_8_7-2 auto/ac/perl-5_8_7-3 auto/ac/perl-5_8_7-4 auto/ac/perl-5_8_7-5 auto/ac/perl-5_8_7-6 auto/ac/perl-5_8_8-10 auto/ac/perl-5_8_8-11 auto/ac/perl-5_8_8-12 auto/ac/perl-5_8_8-13 auto/ac/perl-5_8_8-2 auto/ac/perl-5_8_8-3 auto/ac/perl-5_8_8-4 auto/ac/perl-5_8_8-5 auto/ac/perl-5_8_8-6 auto/ac/perl-5_8_8-8 auto/th/perl-5_10_0-1 auto/th/perl-5_10_0-13 auto/th/perl-5_10_0-14 auto/th/perl-5_10_0-15 auto/th/perl-5_10_0-16 auto/th/perl-5_10_0-17 auto/th/perl-5_10_0-18 auto/th/perl-5_10_0-1_1 auto/th/perl-5_10_0-2 auto/th/perl-5_10_0-2_2 auto/th/perl-5_10_0-3 auto/th/perl-5_10_0-4 auto/th/perl-5_10_0-6 auto/th/perl-5_10_0-7 auto/th/perl-5_10_0-8 auto/th/perl-5_10_0-9 auto/th/perl-5_8_6-3 auto/th/perl-5_8_6-4 auto/th/perl-5_8_7-6 auto/th/perl-5_8_8-11 auto/th/perl-5_8_8-12 auto/th/perl-5_8_8-6 auto/ti/perl-5_10_0-18 auto/ti/perl-5_8_8-11
authorradek <radek@pld-linux.org>
Wed, 5 May 2004 17:13:54 +0000 (17:13 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl.prov -> 1.10

perl.prov

index 21da4a8b8bedfcf782e071c7239008712300a6ef..a494480010caf026594bf8edb15fbf22dc243e03 100644 (file)
--- a/perl.prov
+++ b/perl.prov
@@ -31,9 +31,12 @@ use Safe;
 sub new {
        my $class = shift;
        my $self = {
-               inc => [ sort { length $b cmp length $a } grep m#^/#, @INC ],
+               inc => [
+                       sort { length $b cmp length $a } grep m#^/#,
+                       map { y#/#/#s; s#/$##; $_ } @INC
+               ],
                provide => {},
-               safe => Safe->new,
+               safe    => Safe->new,
                @_,
        };
        bless $self, $class;
@@ -57,7 +60,7 @@ sub process_file {
        # if the file lives under @INC, we can
        # obtain the package name from it's path
        for (@{ $self->{inc} }) {
-               if ($file =~ m#\Q$_\E/?(.+)$#) {    # we can't use ^ here
+               if ($file =~ m#\Q$_\E/(.+)$#) {    # we can't use ^ here
                        $package = $1;
 
                        if ($package !~ s/\.pm$//) {    # it's a *.pl
This page took 0.057379 seconds and 4 git commands to generate.