diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2003-05-28 11:12:02 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2003-05-28 11:12:02 +0000 |
commit | 8ea404cf153ad8de6b81d44aa0f0476cae5d24bf (patch) | |
tree | 777cbad0148a01a6a04d836c72551905663a7051 | |
parent | 9e134d48c816cbff763b2a5e14fb31f1cfc65e2b (diff) | |
download | rpmdrake-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-x | rpmdrake | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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}"; |