chiark / gitweb /
wp-fdroid: show GPG Signature link for source tarballs
authorHans-Christoph Steiner <hans@eds.org>
Thu, 3 Nov 2016 09:38:22 +0000 (10:38 +0100)
committerHans-Christoph Steiner <hans@eds.org>
Mon, 7 Nov 2016 13:53:01 +0000 (14:53 +0100)
Now that source tarballs can be GPG-signed, the website should also display
a link to fetch them.

wp-fdroid/wp-fdroid.php

index 1a5aa8bce30a6acd48b32233e0f57825e9a22841..4d62f0b8a9b1d42a6608715c2a2842e183dcc31b 100644 (file)
@@ -515,6 +515,9 @@ class FDroid
                                        if($srcbuild) {
                                                $out.='<br /><a href="https://f-droid.org/repo/'.$apk['srcname'].'">source tarball</a> ';
                                                $out.=$this->human_readable_size(filesize($this->site_path.'/repo/'.$apk['srcname']));
+                                               if(file_exists($this->site_path.'/repo/'.$apk['srcname'].'.asc')) {
+                                                       $out.=' <a href="https://f-droid.org/repo/'.$apk['srcname'].'.asc">GPG Signature</a> ';
+                                               }
                                        }
 
                                        if(isset($apk['permissions'])) {