]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- added stripping .pm in module name if needed (perl.req)
authorpius <pius@pld-linux.org>
Tue, 2 Nov 1999 23:26:00 +0000 (23:26 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm-perl-macros.patch -> 1.11

rpm-perl-macros.patch

index c69d4844b3b98c3e202c8dc13aafc6753c2f25de..7f034e241ad845d1409154a587a638b6e450757e 100644 (file)
        next;
      }
  
-@@ -108,8 +120,17 @@
+@@ -108,8 +120,20 @@
        # will be included with the name sys/systeminfo.ph so only use the
        # basename of *.ph files
  
 +
 +      ($module =~ m/\.(ph|pl)$/) && next;
 +
-+      # we don't provide platform specific modules for platforms other 
-+      # than unix so we also shouldn't require them
-+      ($module =~ m/Mac|OS2|MSDOS|Win32/) && next;
++      # skip all modules for oparating systems other than linux
++
++      ($module =~ m/Mac|OS2|MSDOS|Win32|VMS|vmsish/) && next;
++
++      # if the module ends with .pm strip it to leave only basename
+
++      ($module =~ m/\.pm$/) && ($module =~ s!\.pm$!!g );
  
        $require{$module}=$version;
        $line{$module}=$_;
This page took 0.044148 seconds and 4 git commands to generate.