aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-02-15 08:29:15 +0000
committerThierry Vignaud <tv@mandriva.org>2009-02-15 08:29:15 +0000
commit176075c5122358d9289ab8de1f7258c54853beab (patch)
treed7e2721709b90fd827a8d314f2df10a8010f2792
parentd0021121b78511e15d568206b421e97a5ff46c63 (diff)
downloadrpmdrake-176075c5122358d9289ab8de1f7258c54853beab.tar
rpmdrake-176075c5122358d9289ab8de1f7258c54853beab.tar.gz
rpmdrake-176075c5122358d9289ab8de1f7258c54853beab.tar.bz2
rpmdrake-176075c5122358d9289ab8de1f7258c54853beab.tar.xz
rpmdrake-176075c5122358d9289ab8de1f7258c54853beab.zip
(get_pkgs) enhance previous commit (r252875): skip even more
computations but do compute updates for MandrivaUpdate
-rw-r--r--Rpmdrake/pkg.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index c1d395e5..4cf07d96 100644
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -421,6 +421,10 @@ sub get_pkgs {
my $requested = {};
my $state = {};
+ my (@requested, @requested_strict);
+
+ if ($::rpmdrake_options{compute_updates} || $::MODE eq 'update') {
+
$urpm->request_packages_to_upgrade(
$db,
$state,
@@ -432,10 +436,6 @@ sub get_pkgs {
priority_upgrade => $urpm->{options}{'priority-upgrade'},
);
- my (@requested, @requested_strict);
-
-
- if ($::rpmdrake_options{compute_updates}) {
if ($urpm->{options}{'priority-upgrade'}) {
$need_restart =
urpm::select::resolve_priority_upgrades_after_auto_select($urpm, $db, $state,