From bdf484a2bd0162ad9573d297f0a4fbd671992d9f Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 24 Nov 2010 19:26:09 +0000 Subject: use urpmi-root when listing media --- 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 d30a5f1..47e5045 100644 --- a/lib/Iurt/Urpmi.pm +++ b/lib/Iurt/Urpmi.pm @@ -184,7 +184,7 @@ sub urpmi_command { sub check_media_added { my ($chroot, $media) = @_; - my $medias = `urpmq --root $chroot --list-media 2>&1`; + my $medias = `urpmq --urpmi-root $chroot --list-media 2>&1`; print "MEDIA $medias ($media)\n"; $medias =~ /$media/m; } -- cgit v1.2.1