aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Iurt/Urpmi.pm10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/Iurt/Urpmi.pm b/lib/Iurt/Urpmi.pm
index 307994f..d0a34fb 100644
--- a/lib/Iurt/Urpmi.pm
+++ b/lib/Iurt/Urpmi.pm
@@ -46,10 +46,8 @@ sub new {
$self;
}
-sub set_command {
- my ($self, $chroot_tmp) = @_;
- set_command__use_distrib($self, $chroot_tmp);
-}
+sub set_command { &set_command__use_distrib }
+
sub set_command__use_distrib {
my ($self, $chroot_tmp) = @_;
$self->{urpmi_command} = "urpmi $self->{urpmi_options} --use-distrib $self->{distrib_url} --root $chroot_tmp";
@@ -79,7 +77,7 @@ sub urpmi_command {
#plog(3, "urpmi_command ($chroot_tmp user $luser)");
if ($run->{chrooted_urpmi}) {
- $self->set_command__use_distrib($chroot_tmp);
+ $self->set_command($chroot_tmp);
# CM: commented out
# this was causing rpm database corruption problems and the packages
@@ -171,7 +169,7 @@ sub urpmi_command {
$self->set_command__chrooted($chroot_tmp);
return 1;
} else {
- $self->set_command__use_distrib($chroot_tmp);
+ $self->set_command($chroot_tmp);
}
}