aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-02-08 16:06:11 +0000
committerThierry Vignaud <tv@mandriva.org>2008-02-08 16:06:11 +0000
commit45d469f6f90a11079a8f00a0d062457ca46743ef (patch)
treeea51a630153c7af9865c57425fda3e8dcd826f84
parent0ed66231cb182f36611444dbd643ad5dbd7e2c1c (diff)
downloadrpmdrake-45d469f6f90a11079a8f00a0d062457ca46743ef.tar
rpmdrake-45d469f6f90a11079a8f00a0d062457ca46743ef.tar.gz
rpmdrake-45d469f6f90a11079a8f00a0d062457ca46743ef.tar.bz2
rpmdrake-45d469f6f90a11079a8f00a0d062457ca46743ef.tar.xz
rpmdrake-45d469f6f90a11079a8f00a0d062457ca46743ef.zip
(extract_header) fix querying file list of installed packages
(regression introduced in r233988 on 2008-02-06 ("fix file list of installed RPMS...")
-rw-r--r--Rpmdrake/pkg.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index 8dbd11ea..36bfc244 100644
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -106,7 +106,7 @@ sub extract_header {
$name =~ s!\.src!!;
if ($p->flag_installed && !$p->flag_upgrade) {
- my @files = map { chomp_(to_utf8($_)) } run_rpm("rpm -ql rpm");
+ my @files = map { chomp_(to_utf8($_)) } run_rpm("rpm -ql $name");
add2hash($pkg, { files => [ @files ? @files : N("(none)") ],
changelog => format_changelog_string(to_utf8(scalar(run_rpm("rpm -q --changelog $name")))) });
} else {