summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2012-12-10 17:07:58 +0000
committerNicolas Vigier <boklm@mageia.org>2012-12-10 17:07:58 +0000
commit5c1bbb54810d9438716167d6ee12037c292b0cd2 (patch)
treeddf801286cd1fc776c9917a2e32e34b9ef049f7d
parent8a877d047b8ddfb3e802cfdb8f982f7e32c0f2cd (diff)
downloadpkgsubmit-5c1bbb54810d9438716167d6ee12037c292b0cd2.tar
pkgsubmit-5c1bbb54810d9438716167d6ee12037c292b0cd2.tar.gz
pkgsubmit-5c1bbb54810d9438716167d6ee12037c292b0cd2.tar.bz2
pkgsubmit-5c1bbb54810d9438716167d6ee12037c292b0cd2.tar.xz
pkgsubmit-5c1bbb54810d9438716167d6ee12037c292b0cd2.zip
conf.php: add $package_commit_url
-rw-r--r--conf.php5
-rw-r--r--index.php2
2 files changed, 5 insertions, 2 deletions
diff --git a/conf.php b/conf.php
index 20f13ce..a74c192 100644
--- a/conf.php
+++ b/conf.php
@@ -37,4 +37,7 @@ $title = 'Build system status';
$robots = 'index,nofollow,nosnippet,noarchive';
/** */
-$g_root_url = 'http://pkgsubmit.mageia.org/'; \ No newline at end of file
+$g_root_url = 'http://pkgsubmit.mageia.org/';
+
+/** URL to view a package svn revision. %d is replaced by the revision */
+$package_commit_url = 'http://svnweb.mageia.org/packages?view=revision&revision=%d';
diff --git a/index.php b/index.php
index 6bb141b..965f8b2 100644
--- a/index.php
+++ b/index.php
@@ -141,7 +141,7 @@ if ($total > 0) {
if (trim($p['package']) == '') {
continue;
}
- $revision_link = sprintf('http://svnweb.mageia.org/packages?view=revision&revision=%d', $p['revision']);
+ $revision_link = sprintf($package_commit_url, $p['revision']);
$s .= sprintf($tmpl,
$p['type'],