---- rpm-4.0/scripts/perl.req Mon Dec 16 11:36:15 2000
-+++ rpm-4.0.mis/scripts/perl.req Mon Dec 16 11:46:28 2000
+--- rpm-4.0.4/scripts/perl.req.wiget Tue Feb 12 21:49:36 2002
++++ rpm-4.0.4/scripts/perl.req Tue Feb 12 21:51:41 2002
@@ -61,6 +61,11 @@
}
}
foreach $module (sort keys %require) {
if (length($require{$module}) == 0) {
-@@ -82,6 +86,53 @@
+@@ -82,6 +87,53 @@
exit 0;
sub process_file {
-@@ -90,6 +141,8 @@
+@@ -90,6 +142,8 @@
- open(FILE, "<$file")||
- die("$0: Could not open file: '$file' : $!\n");
-+
-+ return if (!is_perlfile($file, \*FILE));
+ open(FILE, "<$file") || return;
++ return if (!is_perlfile($file, \*FILE));
++
while (<FILE>) {
-@@ -112,6 +165,10 @@
+ # skip the documentation
+@@ -111,6 +165,10 @@
last;
}
# Each keyword can appear multiple times. Don't
# bother with datastructures to store these strings,
# if we need to print it print it now.
-@@ -209,6 +266,10 @@
- # if the module name starts in a dot it is not a module name.
+@@ -229,6 +287,10 @@
($module =~ m/^\./) && next;
-+
+
+ # name starts in a non alphanumeric character it is not a module
+ # name.
+ ($module =~ m/^\W/) && next;
-
++
# if the module ends with .pm strip it to leave only basename.
+ $module =~ s/\.pm$//;