From 5189d08dfa1cc557d5a4ad53249d2b7bd9005399 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 22 Nov 2007 16:08:28 +0000 Subject: using ->set_command, and make it clear it redirects to set_command__use_distrib (preparing to allow switching to set_command__urpmi_root) --- lib/Iurt/Urpmi.pm | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'lib') 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); } } -- cgit v1.2.1