commit 24dd329ec39b730ce99bfe1af9702dbb00f5178c
parent 33e26eda296de2233a05585ae36f991161371d1d
Author: lash <dev@holbrook.no>
Date: Wed, 19 Jun 2024 19:15:39 +0100
Implement base input checking from config
Diffstat:
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/Bluto.pm b/Bluto.pm
@@ -186,6 +186,11 @@ sub from_config {
my $src = $m_main{slug} . '/' . basename($targz);
push(@m_src, $v . '/' . $src);
}
+
+ if ($#m_src < 0) {
+ error('no source bundle prefixes defined');
+ return undef;
+ }
# process changelog entry
my $body = '';
diff --git a/Bluto/Archive.pm b/Bluto/Archive.pm
@@ -30,9 +30,10 @@ sub seal {
close($f);
if (!defined $keygrip) {
+ warn('skipping signature due to missing key');
return $z;
}
-
+
my @cmd = ('gpg', '-a', '-b', '-u', $keygrip, $hp);
system(@cmd);
if ($?) {