From f72fe535d06f617d0a4bbbd809f9682bfcbc3daa Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 17 Apr 2012 20:53:12 +0000 Subject: fix inverted test in previous commit --- lib/Iurt/Urpmi.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Iurt/Urpmi.pm b/lib/Iurt/Urpmi.pm index 9e20a97..4a1f0da 100644 --- a/lib/Iurt/Urpmi.pm +++ b/lib/Iurt/Urpmi.pm @@ -30,7 +30,7 @@ sub new { plog('DEBUG', "installation media: $run->{chrooted_media}"); } - $self->{use__urpmi_root} = urpm::is_local_url($config->{repository}); + $self->{use__urpmi_root} = !urpm::is_local_url($config->{repository}); $self->{distrib_url} = "$config->{repository}/$run->{distro}/$run->{my_arch}"; $self; @@ -120,7 +120,7 @@ sub urpmi_command { $name =~ s![/:]!_!g; my $url; - if (urpm::is_local_url($run->{additional_media}{repository})) { + if (!urpm::is_local_url($run->{additional_media}{repository})) { $url = $run->{additional_media}{repository}; } else { -- cgit v1.2.1