aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Iurt/Urpmi.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Iurt/Urpmi.pm b/lib/Iurt/Urpmi.pm
index 5305135..1c26d55 100644
--- a/lib/Iurt/Urpmi.pm
+++ b/lib/Iurt/Urpmi.pm
@@ -41,8 +41,7 @@ sub new {
plog('DEBUG', "installation media: $run->{chrooted_media}");
}
- $self->{urpmi_media_options} .=
- " --use-distrib $config->{repository}/$run->{distro}/$run->{my_arch}";
+ $self->{distrib_url} = "$config->{repository}/$run->{distro}/$run->{my_arch}";
$self;
}
@@ -52,7 +51,7 @@ sub set_command {
set_command__use_distrib($self, $chroot_tmp);
}
sub set_command__use_distrib {
- $self->{urpmi_command} = "urpmi $self->{urpmi_options} $self->{urpmi_media_options} --root $chroot_tmp";
+ $self->{urpmi_command} = "urpmi $self->{urpmi_options} --use-distrib $self->{distrib_url} --root $chroot_tmp";
}
sub set_local_media {