diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-02-26 20:57:13 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-02-26 20:57:13 +0000 |
commit | cb1d5b4418f3fb72933d0b1f6529c3877a890789 (patch) | |
tree | 9e85f1eb296fda8fde29217419d59d78c1475bce /urpm/get_pkgs.pm | |
parent | 4a3e10706816f1e9c81d70de901c64dee593f7a1 (diff) | |
download | urpmi-cb1d5b4418f3fb72933d0b1f6529c3877a890789.tar urpmi-cb1d5b4418f3fb72933d0b1f6529c3877a890789.tar.gz urpmi-cb1d5b4418f3fb72933d0b1f6529c3877a890789.tar.bz2 urpmi-cb1d5b4418f3fb72933d0b1f6529c3877a890789.tar.xz urpmi-cb1d5b4418f3fb72933d0b1f6529c3877a890789.zip |
simplify
Diffstat (limited to 'urpm/get_pkgs.pm')
-rw-r--r-- | urpm/get_pkgs.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm/get_pkgs.pm b/urpm/get_pkgs.pm index d715e9fc..0068b95b 100644 --- a/urpm/get_pkgs.pm +++ b/urpm/get_pkgs.pm @@ -177,8 +177,8 @@ sub download_packages_of_distant_media { foreach my $i (keys %distant_sources) { my ($filename) = $distant_sources{$i} =~ m|/([^/]*\.rpm)$|; if ($filename && -s "$cachedir/partial/$filename") { - if (verify_partial_rpm_and_move($urpm, $cachedir, $filename)) { - $sources->{$i} = "$cachedir/rpms/$filename"; + if (my $rpm = verify_partial_rpm_and_move($urpm, $cachedir, $filename)) { + $sources->{$i} = $rpm; } else { unlink "$cachedir/partial/$filename"; $errors{$i} = [ $distant_sources{$i}, 'bad' ]; |