diff options
author | Thierry Vignaud <tv@mandriva.org> | 2006-09-13 09:55:27 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2006-09-13 09:55:27 +0000 |
commit | ae995eac3513b57d701c1050a5a0371772bf6f15 (patch) | |
tree | 182b1c2bd9e63f0871243994c9cbd73ea392c1d5 | |
parent | c49030f98ef8e674e21cc2dff0409baf2ac87ed5 (diff) | |
download | rpmdrake-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-x | rpmdrake | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 { |