summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--urpm/get_pkgs.pm2
-rw-r--r--urpm/removable.pm4
2 files changed, 3 insertions, 3 deletions
diff --git a/urpm/get_pkgs.pm b/urpm/get_pkgs.pm
index 401ccbad..d715e9fc 100644
--- a/urpm/get_pkgs.pm
+++ b/urpm/get_pkgs.pm
@@ -113,7 +113,7 @@ sub verify_partial_rpm_and_move {
#- it seems the the file has been downloaded correctly and has been checked to be valid.
unlink "$cachedir/rpms/$filename";
urpm::sys::move_or_die($urpm, "$cachedir/partial/$filename", "$cachedir/rpms/$filename");
- 1;
+ "$cachedir/rpms/$filename";
}
# TODO verify that files are downloaded from the right corresponding media
diff --git a/urpm/removable.pm b/urpm/removable.pm
index be992150..c94e5eeb 100644
--- a/urpm/removable.pm
+++ b/urpm/removable.pm
@@ -154,8 +154,8 @@ sub _do_the_copy {
unlink "$urpm->{cachedir}/partial/$filename";
$urpm->{log}("copying $filepath");
copy_and_own($filepath, "$urpm->{cachedir}/partial/$filename") or return;
- urpm::get_pkgs::verify_partial_rpm_and_move($urpm, $urpm->{cachedir}, $filename) or return;
- "$urpm->{cachedir}/rpms/$filename";
+ my $f = urpm::get_pkgs::verify_partial_rpm_and_move($urpm, $urpm->{cachedir}, $filename) or return;
+ $f;
}
sub _examine_removable_medium_ {