]> git.pld-linux.org Git - packages/rpm.git/blobdiff - rpm-perl-macros.patch
- fixed generating requirements for shell scripts
[packages/rpm.git] / rpm-perl-macros.patch
index e3bd72191719487873ce2e88ae0ebbda8b8f764d..dfaa50e6d203cd76a31152eadfa761d607e6d1c2 100644 (file)
        next;
      }
  
-@@ -108,8 +120,24 @@
+@@ -108,8 +120,28 @@
        # will be included with the name sys/systeminfo.ph so only use the
        # basename of *.ph files
  
 +
 +      ($module =~ m/Mac|OS2|MSDOS|Win32|VMS|vmsish/) && next;
 +
++      # if the module name starts in a dot it is not a module name
++
++      ($module =~ m/^\./) && next;
++
 +      # if the module ends with .pm strip it to leave only basename
 +
 +      ($module =~ m/\.pm$/) && ($module =~ s/\.pm//g);
  if ("@ARGV") {
    foreach (@ARGV) {
 -    process_file($_);
-+    if (! m=\.(so|gz|ph|pod)$=) {
++     if (! m=(/(doc|usr/src)/|\.(so|gz|ph|pod)$)=) {
 +      process_file($_);
 +    }
    }
  
    foreach (<>) {
 -    process_file($_);
-+    if (! m=\.(so|gz|ph|pod)$=) {
++     if (! m=(/(doc|usr/src)/|\.(so|gz|ph|pod)$)=) {
 +      process_file($_);
 +    }
    }
This page took 0.043518 seconds and 4 git commands to generate.