diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-02-20 14:17:12 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-02-20 14:17:12 +0000 |
commit | a8ed36109e0ef7e183b020c4ca2d2694d51414fb (patch) | |
tree | 1f8f7d1f8084766ad89ced10948c981f951b9070 | |
parent | e4eb85557a8629b98ca22dfa715a44eaf684af4e (diff) | |
download | rpmdrake-a8ed36109e0ef7e183b020c4ca2d2694d51414fb.tar rpmdrake-a8ed36109e0ef7e183b020c4ca2d2694d51414fb.tar.gz rpmdrake-a8ed36109e0ef7e183b020c4ca2d2694d51414fb.tar.bz2 rpmdrake-a8ed36109e0ef7e183b020c4ca2d2694d51414fb.tar.xz rpmdrake-a8ed36109e0ef7e183b020c4ca2d2694d51414fb.zip |
(get_pkgs) do not reuse existing urpm object since it "remember" previous
operations it has done (thus fixing "cannot see uninstalled packages" bug,
#25991)
-rwxr-xr-x | rpmdrake | 16 |
1 files changed, 7 insertions, 9 deletions
@@ -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}}; |