aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2006-09-13 09:55:27 +0000
committerThierry Vignaud <tv@mandriva.org>2006-09-13 09:55:27 +0000
commitae995eac3513b57d701c1050a5a0371772bf6f15 (patch)
tree182b1c2bd9e63f0871243994c9cbd73ea392c1d5
parentc49030f98ef8e674e21cc2dff0409baf2ac87ed5 (diff)
downloadrpmdrake-ae995eac3513b57d701c1050a5a0371772bf6f15.tar
rpmdrake-ae995eac3513b57d701c1050a5a0371772bf6f15.tar.gz
rpmdrake-ae995eac3513b57d701c1050a5a0371772bf6f15.tar.bz2
rpmdrake-ae995eac3513b57d701c1050a5a0371772bf6f15.tar.xz
rpmdrake-ae995eac3513b57d701c1050a5a0371772bf6f15.zip
(extract_header) fix extracting info for installed packages
-rwxr-xr-xrpmdrake2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmdrake b/rpmdrake
index c75a596e..99d8027e 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -409,7 +409,7 @@ sub extract_header {
[ map { [ "$_\n", if_(/^\*/, { 'weight' => Gtk2::Pango->PANGO_WEIGHT_BOLD }) ] } split("\n", $_[0]) ];
};
my $name = my_fullname($pkg->{pkg});
- if ($MODE eq 'remove') {
+ if ($pkg->{pkg}->flag_installed) {
add2hash($pkg, { files => [ split /\n/, chomp_(scalar(`rpm -ql $name`)) || N("(none)") ],
changelog => $chg_prepro->(to_utf8(scalar(`rpm -q --changelog $name`))) });
} else {