aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-11-22 16:03:55 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-11-22 16:03:55 +0000
commit9f92ede4ab253ecfbe9286155ee0f0f1013c9ac5 (patch)
tree5e62831f2e96db442d31876cb33c4f6669c3bae5
parentdb7eb0b274fde92c6363a4ea45ecad727fa3efe0 (diff)
downloadiurt-9f92ede4ab253ecfbe9286155ee0f0f1013c9ac5.tar
iurt-9f92ede4ab253ecfbe9286155ee0f0f1013c9ac5.tar.gz
iurt-9f92ede4ab253ecfbe9286155ee0f0f1013c9ac5.tar.bz2
iurt-9f92ede4ab253ecfbe9286155ee0f0f1013c9ac5.tar.xz
iurt-9f92ede4ab253ecfbe9286155ee0f0f1013c9ac5.zip
create ->set_command__chroot
-rw-r--r--lib/Iurt/Urpmi.pm6
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);