From: Hans-Christoph Steiner Date: Thu, 3 Nov 2016 09:38:22 +0000 (+0100) Subject: wp-fdroid: show GPG Signature link for source tarballs X-Git-Tag: 0.8~149^2 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=fb0c824d3c560f6fe5ef422ad5c1a5696f19948c;p=fdroidserver.git 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. --- 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'])) {