aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-05-28 11:12:02 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-05-28 11:12:02 +0000
commit8ea404cf153ad8de6b81d44aa0f0476cae5d24bf (patch)
tree777cbad0148a01a6a04d836c72551905663a7051
parent9e134d48c816cbff763b2a5e14fb31f1cfc65e2b (diff)
downloadrpmdrake-8ea404cf153ad8de6b81d44aa0f0476cae5d24bf.tar
rpmdrake-8ea404cf153ad8de6b81d44aa0f0476cae5d24bf.tar.gz
rpmdrake-8ea404cf153ad8de6b81d44aa0f0476cae5d24bf.tar.bz2
rpmdrake-8ea404cf153ad8de6b81d44aa0f0476cae5d24bf.tar.xz
rpmdrake-8ea404cf153ad8de6b81d44aa0f0476cae5d24bf.zip
fix file list in remove mode inserting one void line too much after itself
-rwxr-xr-xrpmdrake3
1 files changed, 2 insertions, 1 deletions
diff --git a/rpmdrake b/rpmdrake
index d6eab5bc..4ea68a3c 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -128,7 +128,8 @@ sub extract_header {
if ($MODE eq 'remove') {
@$max_info_in_descr or return;
my $name = my_fullname($pkg->{pkg});
- add2hash($pkg, { files => scalar(`rpm -ql $name`) || N("(none)"), changelog => $chg_prepro->(scalar(`LC_ALL=C rpm -q --changelog $name`)) });
+ add2hash($pkg, { files => chomp_(scalar(`rpm -ql $name`)) || N("(none)"),
+ changelog => $chg_prepro->(scalar(`LC_ALL=C rpm -q --changelog $name`)) });
} else {
my ($headersdir, $p, $medium) = ('/root/tmp/headers/', $pkg->{pkg}, pkg2medium($pkg->{pkg}, $urpm));
my $hdlist = "$urpm->{statedir}/$medium->{hdlist}";