From f0a00bbc6f7c09aa81e35635529eb0ba7db5ab00 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Fri, 23 Jul 2004 05:12:13 +0000 Subject: Better error handling for copy failures --- urpm/download.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'urpm') 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', $_); } } -- cgit v1.2.1