summaryrefslogtreecommitdiffstats
path: root/clean-rpmsrate
diff options
context:
space:
mode:
Diffstat (limited to 'clean-rpmsrate')
-rwxr-xr-xclean-rpmsrate2
1 files changed, 1 insertions, 1 deletions
diff --git a/clean-rpmsrate b/clean-rpmsrate
index dc7a317..218b9be 100755
--- a/clean-rpmsrate
+++ b/clean-rpmsrate
@@ -19,7 +19,7 @@ my $rpmsrate_raw_file = shift @ARGV;
my %rpm;
foreach my $dir (@ARGV) {
chdir($dir);
- $rpm{$dir} = [ map { s!(.*)\.rpm$!$1!; $_ } glob "*.rpm" ];
+ $rpm{$dir} = [ map { s!\.rpm$!!; $_ } glob "*.rpm" ];
}
chdir($ENV{PWD}); # in case -o referes to a relative path