From 74d16092cd6f0d7ce2326ab69fc2c51277d378ea Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 5 Mar 2009 11:18:45 +0000 Subject: (_check) fix verifying packages signatures in chrooted environments (especially important for installer where there's no rpmdb in / (really /var/lib/rpm) and thus no keys to check against) --- NEWS | 5 +++++ urpm/signature.pm | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 9ed70043..6da9d8ef 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,8 @@ +- urpmi + o fix verifying packages signatures in chrooted environments (especially + important for installer where there's no rpmdb in / (really /var/lib/rpm) + and thus no keys to check against) + Version 6.22.2 - 4 March 2009 - close another fd leak (needed for drakx) diff --git a/urpm/signature.pm b/urpm/signature.pm index 882bbf35..473839d1 100644 --- a/urpm/signature.pm +++ b/urpm/signature.pm @@ -26,7 +26,7 @@ sub _check { #- rpmlib is doing strftime %c, and so the string comes from the current encoding #- (URPM::bind_rpm_textdomain_codeset() doesn't help here) #- so we have to transform... - my $verif = urpm::msg::from_locale_encoding(URPM::verify_signature($filepath)); + my $verif = urpm::msg::from_locale_encoding(URPM::verify_signature($filepath, $urpm->{urpmi_root})); if ($verif =~ /NOT OK/) { $verif =~ s/\n//g; -- cgit v1.2.1