X-Git-Url: http://git.pld-linux.org/?p=packages%2Frpm.git;a=blobdiff_plain;f=rpm-php-requires;h=2a3fb601ac143e2bcc7fd30ca02f84dd91255cee;hp=bcbdea179eb364ff3e3a6c52fce3a1ddac9c2d61;hb=7cf857f2dab39731c52fbe7a0e8a6277bdd07535;hpb=ff5da8bfd7f0851e389b315856c945f362cf3ffc diff --git a/rpm-php-requires b/rpm-php-requires index bcbdea1..2a3fb60 100644 --- a/rpm-php-requires +++ b/rpm-php-requires @@ -48,6 +48,7 @@ foreach (@ARGV ? $ARGV : <> ) { } next if ($x =~ m|^\./| or $x =~ /\$/); + next unless ($x =~ /\.php$/); $req{$x} = 1; } @@ -66,6 +67,7 @@ foreach (@ARGV ? $ARGV : <> ) { } next if ($x =~ /\$/); + next unless ($x =~ /\.php$/); $x = "$file_dir/$x"; $x =~ s|/+|/|g;