diff options
Diffstat (limited to 'lib/Iurt')
-rw-r--r-- | lib/Iurt/Urpmi.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Iurt/Urpmi.pm b/lib/Iurt/Urpmi.pm index 6065b62..ec2e20c 100644 --- a/lib/Iurt/Urpmi.pm +++ b/lib/Iurt/Urpmi.pm @@ -54,6 +54,10 @@ sub set_command__use_distrib { my ($self, $chroot_tmp) = @_; $self->{urpmi_command} = "urpmi $self->{urpmi_options} --use-distrib $self->{distrib_url} --root $chroot_tmp"; } +sub set_command__chroot { + my ($self, $chroot_tmp) = @_; + $self->{urpmi_command} = "chroot $chroot_tmp urpmi $self->{urpmi_options} "; +} sub set_local_media { my ($self, $local_media) = @_; @@ -164,7 +168,7 @@ sub urpmi_command { add_media($self, $chroot_tmp, 'iurt_group', "iurt_group file:///iurt_media") or next; } - $self->{urpmi_command} = "chroot $chroot_tmp urpmi $self->{urpmi_options} "; + $self->set_command__chroot($chroot_tmp); return 1; } else { $self->set_command__use_distrib($chroot_tmp); |