summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--urpm/download.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm/download.pm b/urpm/download.pm
index 8d21f9a6..8adc79c1 100644
--- a/urpm/download.pm
+++ b/urpm/download.pm
@@ -610,9 +610,9 @@ sub sync_aria2 {
(my $cwd) = getcwd() =~ /(.*)/;
chdir $options->{dir};
my ($buf, $_total, $file) = ('', undef, undef);
+
my @files;
- for (my $i = 0; $i < @_; $i++) {
- my $metalinkfile = $_[$i];
+ foreach my $metalinkfile (@_) {
$metalinkfile =~ s/metalink:.*/metalink/;
if (! grep { $_ eq $metalinkfile } @files) {
push(@files, $metalinkfile);