summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2020-11-25 22:03:39 +0000
committerPascal Terjan <pterjan@mageia.org>2020-11-25 22:03:39 +0000
commit559dfef8918fb9902e030897104c851fd32216c3 (patch)
tree19a85567ba6a8fdf2ba2ae3da1bc784bc85b0040
parent9eb8eb4a270de3a83851597d79a0f8cb7c4fcf62 (diff)
downloadpkgsubmit-559dfef8918fb9902e030897104c851fd32216c3.tar
pkgsubmit-559dfef8918fb9902e030897104c851fd32216c3.tar.gz
pkgsubmit-559dfef8918fb9902e030897104c851fd32216c3.tar.bz2
pkgsubmit-559dfef8918fb9902e030897104c851fd32216c3.tar.xz
pkgsubmit-559dfef8918fb9902e030897104c851fd32216c3.zip
Do not link to revision 0 in svn when package is not from svn
This happen when submitting for secondary architecture from src.rpm
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index 1bf8329..7ee82ff 100644
--- a/index.php
+++ b/index.php
@@ -143,7 +143,7 @@ if ($total > 0) {
if (trim($p['package']) == '') {
continue;
}
- $revision_link = sprintf($package_commit_url, $p['revision']);
+ $revision_link = $p['revision'] ? sprintf($package_commit_url, $p['revision']) : '';
$s .= sprintf($tmpl,
$p['type'],