summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-03-15 19:13:00 +0000
committerThierry Vignaud <tv@mageia.org>2012-03-15 19:13:00 +0000
commit292fc31ae6e7bcf6622fbaa3cb87232e3e19c834 (patch)
tree5be3b5bb09defbd27f0875673865d381c4aed134
parentaa3e72b2a1d37d6fbbb0b0864cd6f2c61ad6b64f (diff)
downloadmgatools-292fc31ae6e7bcf6622fbaa3cb87232e3e19c834.tar
mgatools-292fc31ae6e7bcf6622fbaa3cb87232e3e19c834.tar.gz
mgatools-292fc31ae6e7bcf6622fbaa3cb87232e3e19c834.tar.bz2
mgatools-292fc31ae6e7bcf6622fbaa3cb87232e3e19c834.tar.xz
mgatools-292fc31ae6e7bcf6622fbaa3cb87232e3e19c834.zip
rename $d as $dir for clarity
-rwxr-xr-xclean-rpmsrate4
1 files changed, 2 insertions, 2 deletions
diff --git a/clean-rpmsrate b/clean-rpmsrate
index 2e90985..2bdac4f 100755
--- a/clean-rpmsrate
+++ b/clean-rpmsrate
@@ -17,7 +17,7 @@ $ARGV[1] or print "\nUsage:
my $rpmsrate_raw_file = shift @ARGV;
my %rpm;
-foreach my $d (@ARGV) {
- $rpm{$d} = [ map { s!$d/?(.*)\.rpm$!$1!; $_ } glob "$d/*.rpm" ];
+foreach my $dir (@ARGV) {
+ $rpm{$dir} = [ map { s!$dir/?(.*)\.rpm$!$1!; $_ } glob "$dir/*.rpm" ];
}
cleanrpmsrate($rpmsrate_raw_file, $output_file, \%rpm);