diff options
-rw-r--r-- | NEWS | 1 | ||||
-rwxr-xr-x | clean-rpmsrate | 5 |
2 files changed, 5 insertions, 1 deletions
@@ -3,6 +3,7 @@ o fix matching dkms packages (broken for years...) o fix matching locales-xx_XX for localized packages o fix matching mga extension (broken since mga fork) + o 11.5% faster on average on cached repo directory 0.1: - initial release diff --git a/clean-rpmsrate b/clean-rpmsrate index 2bdac4f..dc7a317 100755 --- a/clean-rpmsrate +++ b/clean-rpmsrate @@ -18,6 +18,9 @@ my $rpmsrate_raw_file = shift @ARGV; my %rpm; foreach my $dir (@ARGV) { - $rpm{$dir} = [ map { s!$dir/?(.*)\.rpm$!$1!; $_ } glob "$dir/*.rpm" ]; + chdir($dir); + $rpm{$dir} = [ map { s!(.*)\.rpm$!$1!; $_ } glob "*.rpm" ]; } +chdir($ENV{PWD}); # in case -o referes to a relative path + cleanrpmsrate($rpmsrate_raw_file, $output_file, \%rpm); |