diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-11-22 16:08:28 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-11-22 16:08:28 +0000 |
commit | 5189d08dfa1cc557d5a4ad53249d2b7bd9005399 (patch) | |
tree | b79002cacd80ebd7afb1ca2410baa1d01883acba /lib/Iurt/Urpmi.pm | |
parent | 9ee1991ba3d656ff0dce92c7c8ed93e82b646a77 (diff) | |
download | iurt-5189d08dfa1cc557d5a4ad53249d2b7bd9005399.tar iurt-5189d08dfa1cc557d5a4ad53249d2b7bd9005399.tar.gz iurt-5189d08dfa1cc557d5a4ad53249d2b7bd9005399.tar.bz2 iurt-5189d08dfa1cc557d5a4ad53249d2b7bd9005399.tar.xz iurt-5189d08dfa1cc557d5a4ad53249d2b7bd9005399.zip |
using ->set_command, and make it clear it redirects to
set_command__use_distrib
(preparing to allow switching to set_command__urpmi_root)
Diffstat (limited to 'lib/Iurt/Urpmi.pm')
-rw-r--r-- | lib/Iurt/Urpmi.pm | 10 |
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); } } |