summaryrefslogtreecommitdiffstats
path: root/zoom.php
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2010-08-01 17:28:11 +0800
committerJohan Cwiklinski <trasher@x-tnd.be>2010-08-01 18:17:04 +0800
commit2091997e6d1f10b2ea0093483678541c5bec35f3 (patch)
treef3e7f55906ca2eb1cf02779509f1b20c35abf7c9 /zoom.php
parent6f2cf3f10c992ae2b5989bcaa17aa7356417a933 (diff)
Add link to src.rpm, fixes #64
Diffstat (limited to 'zoom.php')
-rw-r--r--zoom.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/zoom.php b/zoom.php
index a353c77..55f2920 100644
--- a/zoom.php
+++ b/zoom.php
@@ -63,6 +63,8 @@ $smarty->assign('page_title', 'Package: ' . $name);
function getBranchPeople($params)
{
global $fedpkg;
+
+ $branch = $people = null; // avoid IDE warning
extract($params);
$ret = null;
if ($branch == 'rawhide' && isset($fedpkg['devel']['owner']) ) {
@@ -96,7 +98,8 @@ if ( !isset($name) || !$name ) {
try {
$db = new PDO ("mysql:dbname=" . MYBASE . ";host=" . MYHOST, MYUSER, MYPASS);
- $sql = "SELECT rpm.*
+ $sql = "SELECT rpm.*,
+ CONCAT(repo.url,rpm.name,'-',rpm.ver,'-',rpm.rel,'.src.rpm') as rpmurl
FROM rpm
INNER JOIN repo ON (repo.main=rpm.repo_main AND repo.sub=rpm.repo_sub)
WHERE rpm.name='$name'