aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-02-20 14:17:12 +0000
committerThierry Vignaud <tv@mandriva.org>2007-02-20 14:17:12 +0000
commita8ed36109e0ef7e183b020c4ca2d2694d51414fb (patch)
tree1f8f7d1f8084766ad89ced10948c981f951b9070
parente4eb85557a8629b98ca22dfa715a44eaf684af4e (diff)
downloadrpmdrake-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-xrpmdrake16
1 files 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}};