From a8ed36109e0ef7e183b020c4ca2d2694d51414fb Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 20 Feb 2007 14:17:12 +0000 Subject: (get_pkgs) do not reuse existing urpm object since it "remember" previous operations it has done (thus fixing "cannot see uninstalled packages" bug, #25991) --- rpmdrake | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/rpmdrake b/rpmdrake index c4f99a47..7ead0af2 100755 --- a/rpmdrake +++ b/rpmdrake @@ -1501,15 +1501,13 @@ sub get_pkgs { }; - if (!$urpm) { - $urpm ||= urpm->new; - $urpm->{fatal} = $fatal_handler; - my $media = ref $options{media} ? join(',', @{$options{media}}) : ''; - $urpm->configure(media => $media); - if ($error_happened) { - touch('/etc/urpmi/urpmi.cfg'); - exec('edit-urpm-sources.pl'); - } + $urpm ||= urpm->new; + $urpm->{fatal} = $fatal_handler; + my $media = ref $options{media} ? join(',', @{$options{media}}) : ''; + $urpm->configure(media => $media); + if ($error_happened) { + touch('/etc/urpmi/urpmi.cfg'); + exec('edit-urpm-sources.pl'); } my $statedir = $urpm->{statedir}; @update_medias = grep { !$_->{ignore} && $_->{update} } @{$urpm->{media}}; -- cgit v1.2.1