From 5c1bbb54810d9438716167d6ee12037c292b0cd2 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Mon, 10 Dec 2012 17:07:58 +0000 Subject: conf.php: add $package_commit_url --- conf.php | 5 ++++- index.php | 2 +- 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'], -- cgit v1.2.1