summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-08-31 16:44:38 +0000
committerThierry Vignaud <tv@mageia.org>2012-08-31 16:44:38 +0000
commit050177b830d2cfae672757615cc18c48055e00d0 (patch)
tree1adbdfd3bc8a9399e5d7526ce5916cd143356fda
parentc04350c65278067d5f88c30fd88fd2e1ea61438c (diff)
downloadurpmi-050177b830d2cfae672757615cc18c48055e00d0.tar
urpmi-050177b830d2cfae672757615cc18c48055e00d0.tar.gz
urpmi-050177b830d2cfae672757615cc18c48055e00d0.tar.bz2
urpmi-050177b830d2cfae672757615cc18c48055e00d0.tar.xz
urpmi-050177b830d2cfae672757615cc18c48055e00d0.zip
(_check) only warn about missing signature for local packages
(aka those _not_ coming from any medium) rationale: we downgrade the missing signature check for local packages from a question (defaulting to "n") to a warning, thus fixing a testsuite regression introduced in 7.4
-rw-r--r--NEWS2
-rw-r--r--urpm/signature.pm2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index bc595b35..3cb93a09 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,8 @@
- security:
o downgrade missing medium key check question to a warning for virtual media
without keys when using urpmi --use-distrib
+ o downgrade missing signature check for local packages from a question to a
+ warning
o honor per medium "verify-rpm" option for missing signature check
o media have keys, not signatures
- unrequested package list management (for orphans) (mga#7167):
diff --git a/urpm/signature.pm b/urpm/signature.pm
index 94a2118f..1f003e5b 100644
--- a/urpm/signature.pm
+++ b/urpm/signature.pm
@@ -45,7 +45,7 @@ sub _check {
if (!$medium) {
if ($verif =~ /OK \(\(none\)\)/) {
$verif =~ s/\n//g;
- $invalid_sources{$filepath} = N("Missing signature (%s)", $verif);
+ $urpm->{info}(N("The following package has no signature (%s): %s\n", $verif, $filepath));
}
next;
}