aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-11-22 16:01:30 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-11-22 16:01:30 +0000
commit397cfeda7cffb975767928e52d0845d606245cae (patch)
tree3cd0cc79962996863cb1391ff0e6e9661ec206ec /lib
parent1829b4d804f1c10a23eb58e23d512f6528544a8c (diff)
downloadiurt-397cfeda7cffb975767928e52d0845d606245cae.tar
iurt-397cfeda7cffb975767928e52d0845d606245cae.tar.gz
iurt-397cfeda7cffb975767928e52d0845d606245cae.tar.bz2
iurt-397cfeda7cffb975767928e52d0845d606245cae.tar.xz
iurt-397cfeda7cffb975767928e52d0845d606245cae.zip
create {distrib_url} out of {urpmi_media_options}, and inline {urpmi_media_options}
Diffstat (limited to 'lib')
-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 {