summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-03-16 07:21:02 +0000
committerThierry Vignaud <tv@mageia.org>2012-03-16 07:21:02 +0000
commit20d94b5d72327914d1da0f9c2c9d1f724db1f086 (patch)
tree78f642cc793e529235133340346da6c6d4e2474d
parent1c69a2a16eba297caf673fc75dd857c8a3082ab8 (diff)
downloadmgatools-20d94b5d72327914d1da0f9c2c9d1f724db1f086.tar
mgatools-20d94b5d72327914d1da0f9c2c9d1f724db1f086.tar.gz
mgatools-20d94b5d72327914d1da0f9c2c9d1f724db1f086.tar.bz2
mgatools-20d94b5d72327914d1da0f9c2c9d1f724db1f086.tar.xz
mgatools-20d94b5d72327914d1da0f9c2c9d1f724db1f086.zip
further simplify (Pascal Terjan)
-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