diff options
author | Remi Collet <fedora@famillecollet.com> | 2012-02-19 10:52:47 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2012-02-19 10:52:47 +0100 |
commit | d8e79ebdcebf738ee5f8f3f36641ff0c751494c3 (patch) | |
tree | 8482e3ce720aba8614b3526e80729a95b928b227 /zoom.php | |
parent | af3071cf5bb6121d096cc92029a161ddaccc3af3 (diff) |
SRPM url in f >= 17, fixed #159
Diffstat (limited to 'zoom.php')
-rw-r--r-- | zoom.php | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -99,8 +99,8 @@ if ( !isset($name) || !$name ) { $uptable = new TableUpstream($db); // Consider each part of ver/rel as integer except second part of rel (generally distro name) - $sql = "SELECT rpm.*, repo.active, - CONCAT(repo.url,rpm.name,'-',rpm.ver,'-',rpm.rel,'.src.rpm') as rpmurl + $sql = "SELECT rpm.*, repo.active, repo.url as repourl, + 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' @@ -185,6 +185,9 @@ if ( !isset($name) || !$name ) { $prev=false; do { + if ($rpm->location) { + $rpm->rpmurl = $rpm->repourl . $rpm->location; + } $packages[] = $rpm; if ( $rpm->repo_main != $prev ) { $prev = $rpm->repo_main; |