aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Iurt/Urpmi.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-04-17 20:53:12 +0000
committerThierry Vignaud <tv@mageia.org>2012-04-17 20:53:12 +0000
commitf72fe535d06f617d0a4bbbd809f9682bfcbc3daa (patch)
tree33ee3c90d552d0c05a470201ab41b5fc006e49b6 /lib/Iurt/Urpmi.pm
parent1cf4853a18cf5682c856709f3fbea1c41631819e (diff)
downloadiurt-f72fe535d06f617d0a4bbbd809f9682bfcbc3daa.tar
iurt-f72fe535d06f617d0a4bbbd809f9682bfcbc3daa.tar.gz
iurt-f72fe535d06f617d0a4bbbd809f9682bfcbc3daa.tar.bz2
iurt-f72fe535d06f617d0a4bbbd809f9682bfcbc3daa.tar.xz
iurt-f72fe535d06f617d0a4bbbd809f9682bfcbc3daa.zip
fix inverted test in previous commit
Diffstat (limited to 'lib/Iurt/Urpmi.pm')
-rw-r--r--lib/Iurt/Urpmi.pm4
1 files 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 {