aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/pkg.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Rpmdrake/pkg.pm')
-rw-r--r--Rpmdrake/pkg.pm11
1 files changed, 9 insertions, 2 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index 71a025df..936117ea 100644
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -336,6 +336,11 @@ sub get_pkgs {
my $requested = {};
my $state = {};
+ my (@requested, @requested_strict);
+
+ {
+ local $urpm->{searchmedia} = undef;
+
$urpm->request_packages_to_upgrade(
$db,
$state,
@@ -343,9 +348,9 @@ sub get_pkgs {
);
# list of updates (including those matching /etc/urpmi/skip.list):
- my @requested = sort map { urpm_name($_) } @{$urpm->{depslist}}[keys %$requested];
+ @requested = sort map { urpm_name($_) } @{$urpm->{depslist}}[keys %$requested];
# list of pure updates (w/o those matching /etc/urpmi/skip.list but with their deps):
- my @requested_strict = $probe_only_for_updates ?
+ @requested_strict = $probe_only_for_updates ?
sort map {
urpm_name($_);
} $urpm->resolve_requested($db, $state, $requested, callback_choices => \&Rpmdrake::gui::callback_choices)
@@ -353,6 +358,8 @@ sub get_pkgs {
# list updates including skiped ones + their deps in MandrivaUpdate:
push @requested, difference2(\@requested_strict, \@requested) if $probe_only_for_updates;
+ }
+
if (!$probe_only_for_updates) {
$urpm->compute_installed_flags($db); # TODO/FIXME: not for updates
$urpm->{depslist}[$_]->set_flag_installed foreach keys %$requested; #- pretend it's installed