From 2091997e6d1f10b2ea0093483678541c5bec35f3 Mon Sep 17 00:00:00 2001
From: Remi Collet <fedora@famillecollet.com>
Date: Sun, 1 Aug 2010 17:28:11 +0800
Subject: Add link to src.rpm, fixes #64

---
 zoom.php | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'zoom.php')

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'
-- 
cgit