aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoão Victor Duarte Martins <jvictor@mandriva.com>2010-06-22 19:55:40 +0000
committerJoão Victor Duarte Martins <jvictor@mandriva.com>2010-06-22 19:55:40 +0000
commit941d5400c083eb270a001a04312cf49f5fc06709 (patch)
treee7be4e8bf2d517ce8c1437f968bdaaaab87a6a7c
parent4098f0ca7dae06e38b878750ba265e4a578487ea (diff)
downloadrpmdrake-941d5400c083eb270a001a04312cf49f5fc06709.tar
rpmdrake-941d5400c083eb270a001a04312cf49f5fc06709.tar.gz
rpmdrake-941d5400c083eb270a001a04312cf49f5fc06709.tar.bz2
rpmdrake-941d5400c083eb270a001a04312cf49f5fc06709.tar.xz
rpmdrake-941d5400c083eb270a001a04312cf49f5fc06709.zip
(get_pkgs): moved setting the installed flag of URPM pkgs to
get_installed_packages().
-rw-r--r--Rpmdrake/pkg.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index 795a2ae6..a2f3e4d6 100644
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -343,6 +343,7 @@ sub get_installed_packages {
$pkg->set_flag_base(1) if $$name == 1;
}
push @installed_pkgs, $fullname;
+ $pkg->set_flag_installed;
$pkg->pack_header; # needed in order to call methods on objects outside ->traverse
});
@installed_pkgs;
@@ -533,8 +534,6 @@ sub get_pkgs {
$all_pkgs{$_}{selected} = 1;
}
- $all_pkgs{$_}{pkg}->set_flag_installed foreach @installed_pkgs;
-
# urpmi only care about the first medium where it found the package,
# so there's no need to list the same package several time:
@installable_pkgs = uniq(difference2(\@installable_pkgs, \@updates));