From fb0c824d3c560f6fe5ef422ad5c1a5696f19948c Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 3 Nov 2016 10:38:22 +0100 Subject: [PATCH] wp-fdroid: show GPG Signature link for source tarballs Now that source tarballs can be GPG-signed, the website should also display a link to fetch them. --- wp-fdroid/wp-fdroid.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-fdroid/wp-fdroid.php b/wp-fdroid/wp-fdroid.php index 1a5aa8bc..4d62f0b8 100644 --- a/wp-fdroid/wp-fdroid.php +++ b/wp-fdroid/wp-fdroid.php @@ -515,6 +515,9 @@ class FDroid if($srcbuild) { $out.='
source tarball '; $out.=$this->human_readable_size(filesize($this->site_path.'/repo/'.$apk['srcname'])); + if(file_exists($this->site_path.'/repo/'.$apk['srcname'].'.asc')) { + $out.=' GPG Signature '; + } } if(isset($apk['permissions'])) { -- 2.30.2