diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-09-01 12:08:08 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-09-01 12:08:08 +0000 |
commit | 4354c5dea8828ddd52daacc4cd4344e183257782 (patch) | |
tree | d8e94e24d053b704819f913e5c522a4c94c1088a /urpm | |
parent | 80a213f6178d5155867b1d24749f730382553f65 (diff) | |
download | urpmi-4354c5dea8828ddd52daacc4cd4344e183257782.tar urpmi-4354c5dea8828ddd52daacc4cd4344e183257782.tar.gz urpmi-4354c5dea8828ddd52daacc4cd4344e183257782.tar.bz2 urpmi-4354c5dea8828ddd52daacc4cd4344e183257782.tar.xz urpmi-4354c5dea8828ddd52daacc4cd4344e183257782.zip |
cleanup
Diffstat (limited to 'urpm')
-rw-r--r-- | urpm/download.pm | 4 |
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); |