From fa3742ccd7768aa62b981b29307538f50d537983 Mon Sep 17 00:00:00 2001 From: Marcelo Leitner Date: Wed, 27 Jun 2007 14:25:56 +0000 Subject: - We do not run chrooted, so we must prefix the media path with the chroot info. --- lib/Iurt/Urpmi.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Iurt/Urpmi.pm b/lib/Iurt/Urpmi.pm index 2cc01c3..4343f8f 100644 --- a/lib/Iurt/Urpmi.pm +++ b/lib/Iurt/Urpmi.pm @@ -126,7 +126,7 @@ sub urpmi_command { # Check if the media is not empty, as add_media will abort if it fails my $DP; - if (!opendir ($DP, $url)) { + if (!opendir ($DP, "$chroot_tmp/$url")) { plog ('ERROR', "Failed to add additional media at $url: $!"); next; } -- cgit v1.2.1