aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Iurt
diff options
context:
space:
mode:
authorOlivier Blin <blino@mageia.org>2010-11-24 19:26:09 +0000
committerOlivier Blin <blino@mageia.org>2010-11-24 19:26:09 +0000
commitbdf484a2bd0162ad9573d297f0a4fbd671992d9f (patch)
tree54655439d9bddc029e2cef4f11a5505b0ccf7908 /lib/Iurt
parent9488aa86da0b0c8afe38e29f22cbf1ebfa65bbe3 (diff)
downloadiurt-bdf484a2bd0162ad9573d297f0a4fbd671992d9f.tar
iurt-bdf484a2bd0162ad9573d297f0a4fbd671992d9f.tar.gz
iurt-bdf484a2bd0162ad9573d297f0a4fbd671992d9f.tar.bz2
iurt-bdf484a2bd0162ad9573d297f0a4fbd671992d9f.tar.xz
iurt-bdf484a2bd0162ad9573d297f0a4fbd671992d9f.zip
use urpmi-root when listing media
Diffstat (limited to 'lib/Iurt')
-rw-r--r--lib/Iurt/Urpmi.pm2
1 files changed, 1 insertions, 1 deletions
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;
}