summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-08-28 11:00:46 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-08-28 11:00:46 +0000
commit13258c86d966b9bf5abd71a4a892a2c7350d7ff0 (patch)
tree082e8a871b1d16c33d4e6c54b61f780584f2f506 /urpm
parent5d08d9d3219136bdd856cdf2f1b0dffc7a3fb687 (diff)
downloadurpmi-13258c86d966b9bf5abd71a4a892a2c7350d7ff0.tar
urpmi-13258c86d966b9bf5abd71a4a892a2c7350d7ff0.tar.gz
urpmi-13258c86d966b9bf5abd71a4a892a2c7350d7ff0.tar.bz2
urpmi-13258c86d966b9bf5abd71a4a892a2c7350d7ff0.tar.xz
urpmi-13258c86d966b9bf5abd71a4a892a2c7350d7ff0.zip
urpmi: do not verify signature of .spec files (#32824)
(see also a fix in perl-URPM so that URPM::spec2srcheader($_)->arch returns "src" and so urpmi doesn't say it's going to install it (even if it skips it))
Diffstat (limited to 'urpm')
-rw-r--r--urpm/signature.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/urpm/signature.pm b/urpm/signature.pm
index 05fb461f..ccafa299 100644
--- a/urpm/signature.pm
+++ b/urpm/signature.pm
@@ -19,6 +19,8 @@ sub _check {
foreach my $id (keys %$sources) {
my $filepath = $sources->{$id};
+ $filepath !~ /\.spec$/ or next;
+
$urpm->{debug} and $urpm->{debug}("verifying signature of $filepath");
my $verif = URPM::verify_signature($filepath);