diff options
author | Remi Collet <fedora@famillecollet.com> | 2010-08-01 17:28:11 +0800 |
---|---|---|
committer | Johan Cwiklinski <trasher@x-tnd.be> | 2010-08-01 18:17:04 +0800 |
commit | 2091997e6d1f10b2ea0093483678541c5bec35f3 (patch) | |
tree | f3e7f55906ca2eb1cf02779509f1b20c35abf7c9 /zoom.php | |
parent | 6f2cf3f10c992ae2b5989bcaa17aa7356417a933 (diff) |
Add link to src.rpm, fixes #64
Diffstat (limited to 'zoom.php')
-rw-r--r-- | zoom.php | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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' |