summaryrefslogtreecommitdiffstats
path: root/scripts/dpkg-source.pl
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 18:40:28 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 18:40:28 +0000
commit774e54c8927088c60617dc9345f55eaabb23256a (patch)
tree7d82ddb667eaec624064c430b57818c78184e3c7 /scripts/dpkg-source.pl
parentAdding upstream version 1.22.4. (diff)
downloaddpkg-774e54c8927088c60617dc9345f55eaabb23256a.tar.xz
dpkg-774e54c8927088c60617dc9345f55eaabb23256a.zip
Adding upstream version 1.22.5.upstream/1.22.5
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'scripts/dpkg-source.pl')
-rwxr-xr-xscripts/dpkg-source.pl8
1 files changed, 3 insertions, 5 deletions
diff --git a/scripts/dpkg-source.pl b/scripts/dpkg-source.pl
index 664f39c..c27a954 100755
--- a/scripts/dpkg-source.pl
+++ b/scripts/dpkg-source.pl
@@ -482,12 +482,10 @@ if ($options{opmode} =~ /^(build|print-format|(before|after)-build|commit)$/) {
unless ($options{no_check}) {
if ($srcpkg->is_signed()) {
$srcpkg->check_signature();
+ } elsif ($options{require_valid_signature}) {
+ error(g_("%s doesn't contain a valid OpenPGP signature"), $dsc);
} else {
- if ($options{require_valid_signature}) {
- error(g_("%s doesn't contain a valid OpenPGP signature"), $dsc);
- } else {
- warning(g_('extracting unsigned source package (%s)'), $dsc);
- }
+ warning(g_('extracting unsigned source package (%s)'), $dsc);
}
$srcpkg->check_checksums();
}