aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcelo Leitner <mrl@mandriva.com>2007-06-27 14:17:18 +0000
committerMarcelo Leitner <mrl@mandriva.com>2007-06-27 14:17:18 +0000
commit9dc7a3c41d8c5a5d44b0db016b8ef4edfca7eded (patch)
tree4d1467e133c7026fb84a6a49e13daffc155d9837
parent81cda2fe77594aebaec9c23ee6a06568d674c9ce (diff)
downloadiurt-9dc7a3c41d8c5a5d44b0db016b8ef4edfca7eded.tar
iurt-9dc7a3c41d8c5a5d44b0db016b8ef4edfca7eded.tar.gz
iurt-9dc7a3c41d8c5a5d44b0db016b8ef4edfca7eded.tar.bz2
iurt-9dc7a3c41d8c5a5d44b0db016b8ef4edfca7eded.tar.xz
iurt-9dc7a3c41d8c5a5d44b0db016b8ef4edfca7eded.zip
- Enhance error reporting.
-rw-r--r--lib/Iurt/Urpmi.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Iurt/Urpmi.pm b/lib/Iurt/Urpmi.pm
index 1b492b1..b92c77d 100644
--- a/lib/Iurt/Urpmi.pm
+++ b/lib/Iurt/Urpmi.pm
@@ -125,7 +125,10 @@ sub urpmi_command {
}
# Check if the media is not empty, as add_media will abort if it fails
- opendir (my $DP, $url) or next;
+ if (!opendir (my $DP, $url)) {
+ plog ('ERROR', "Failed to add additional media at $url: $!");
+ next;
+ }
my @contents = readdir $DP;
close ($DP);
if ($#contents <= 1) {