summaryrefslogtreecommitdiff
path: root/lib/App/DocKnot/Dist.pm
diff options
context:
space:
mode:
authorRuss Allbery <rra@cpan.org>2022-01-16 22:31:47 -0800
committerRuss Allbery <rra@cpan.org>2022-01-16 22:32:07 -0800
commitc9fd563f8882463c7af8a89e38bfbaf10e5e7c4f (patch)
tree5e90da8051f087189f3f9a04b5aedc33f71b73df /lib/App/DocKnot/Dist.pm
parent306dd37d3c86b903f34f7db188819d5db3bd1f5b (diff)
Always recreate distribution GnuPG signatures
Always recreate GnuPG signatures when generating distribution tarballs in docknot dist. Also convert t/dist/basic.t to use Path::Tiny instead of File::Spec.
Diffstat (limited to 'lib/App/DocKnot/Dist.pm')
-rw-r--r--lib/App/DocKnot/Dist.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/App/DocKnot/Dist.pm b/lib/App/DocKnot/Dist.pm
index 5d1c684..382a41c 100644
--- a/lib/App/DocKnot/Dist.pm
+++ b/lib/App/DocKnot/Dist.pm
@@ -232,6 +232,10 @@ sub _sign_tarballs {
my $files_ref = latest_tarball($path, $prefix)->{files};
for my $file (grep { m{ [.]tar [.][xg]z }xms } $files_ref->@*) {
my $tarball_path = $path->child($file);
+ my $sig_path = $path->child($tarball_path->basename() . '.asc');
+ if ($sig_path->exists()) {
+ $sig_path->remove();
+ }
systemx(
$self->{gpg}, '--detach-sign', '--armor', '-u',
$self->{pgp_key}, $tarball_path,