summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-02-26 20:57:13 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-02-26 20:57:13 +0000
commitcb1d5b4418f3fb72933d0b1f6529c3877a890789 (patch)
tree9e85f1eb296fda8fde29217419d59d78c1475bce
parent4a3e10706816f1e9c81d70de901c64dee593f7a1 (diff)
downloadurpmi-cb1d5b4418f3fb72933d0b1f6529c3877a890789.tar
urpmi-cb1d5b4418f3fb72933d0b1f6529c3877a890789.tar.gz
urpmi-cb1d5b4418f3fb72933d0b1f6529c3877a890789.tar.bz2
urpmi-cb1d5b4418f3fb72933d0b1f6529c3877a890789.tar.xz
urpmi-cb1d5b4418f3fb72933d0b1f6529c3877a890789.zip
simplify
-rw-r--r--urpm/get_pkgs.pm4
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' ];