aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-02-04 15:50:54 +0000
committerThierry Vignaud <tv@mandriva.org>2008-02-04 15:50:54 +0000
commit5f48697dd2712036a76863774cd86c0874f31c89 (patch)
treecdabe30dac2c1e3bd773a1169352f17b7259cf3c /Rpmdrake
parent7e4f6771db0a5c8113b02b50e06be703a0e505a2 (diff)
downloadrpmdrake-5f48697dd2712036a76863774cd86c0874f31c89.tar
rpmdrake-5f48697dd2712036a76863774cd86c0874f31c89.tar.gz
rpmdrake-5f48697dd2712036a76863774cd86c0874f31c89.tar.bz2
rpmdrake-5f48697dd2712036a76863774cd86c0874f31c89.tar.xz
rpmdrake-5f48697dd2712036a76863774cd86c0874f31c89.zip
(extract_header) fix encoding of rpm error message "package contains
no file" (#37428)
Diffstat (limited to 'Rpmdrake')
-rw-r--r--Rpmdrake/pkg.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index 3072072e..e1d35d26 100644
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -102,7 +102,7 @@ sub extract_header {
$name =~ s!\.src!!;
if ($pkg->{pkg}->flag_installed && !$pkg->{pkg}->flag_upgrade) {
- add2hash($pkg, { files => [ split /\n/, chomp_(scalar(run_rpm("rpm -ql $name"))) || N("(none)") ],
+ add2hash($pkg, { files => [ split /\n/, chomp_(to_utf8(scalar(run_rpm("rpm -ql $name")))) || N("(none)") ],
changelog => $chg_prepro->(to_utf8(scalar(run_rpm("rpm -q --changelog $name")))) });
} else {
my ($p, $medium) = ($pkg->{pkg}, pkg2medium($pkg->{pkg}, $urpm));