aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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) {