summaryrefslogtreecommitdiffstats
path: root/urpm/download.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-07-23 05:12:13 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-07-23 05:12:13 +0000
commitf0a00bbc6f7c09aa81e35635529eb0ba7db5ab00 (patch)
treecaa9d0289aabfacf2beab026790c56b070080b2f /urpm/download.pm
parent82a0ea4489d7cf5267fdc3bda5f0815d53cede0c (diff)
downloadurpmi-f0a00bbc6f7c09aa81e35635529eb0ba7db5ab00.tar
urpmi-f0a00bbc6f7c09aa81e35635529eb0ba7db5ab00.tar.gz
urpmi-f0a00bbc6f7c09aa81e35635529eb0ba7db5ab00.tar.bz2
urpmi-f0a00bbc6f7c09aa81e35635529eb0ba7db5ab00.tar.xz
urpmi-f0a00bbc6f7c09aa81e35635529eb0ba7db5ab00.zip
Better error handling for copy failures
Diffstat (limited to 'urpm/download.pm')
-rw-r--r--urpm/download.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm/download.pm b/urpm/download.pm
index 7da27ca3..1520bdda 100644
--- a/urpm/download.pm
+++ b/urpm/download.pm
@@ -157,8 +157,8 @@ sub sync_file {
foreach (@_) {
my ($in) = m!^(?:removable[^:]*|file):/(.*)!;
propagate_sync_callback($options, 'start', $_);
- system("cp", "-p", "-R", $in || $_, ref($options) ? $options->{dir} : $options) and
- die N("copy failed: %s", $@);
+ system("cp", "-p", "-R", $in || $_, ref($options) ? $options->{dir} : $options)
+ and die N("copy failed");
propagate_sync_callback($options, 'end', $_);
}
}