summaryrefslogtreecommitdiffstats
path: root/class
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2012-02-19 10:52:47 +0100
committerRemi Collet <fedora@famillecollet.com>2012-02-19 10:52:47 +0100
commitd8e79ebdcebf738ee5f8f3f36641ff0c751494c3 (patch)
tree8482e3ce720aba8614b3526e80729a95b928b227 /class
parentaf3071cf5bb6121d096cc92029a161ddaccc3af3 (diff)
SRPM url in f >= 17, fixed #159
Diffstat (limited to 'class')
-rw-r--r--class/Parser.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/class/Parser.php b/class/Parser.php
index 79d1282..365f0f8 100644
--- a/class/Parser.php
+++ b/class/Parser.php
@@ -218,6 +218,7 @@ class Parser
foreach ($primary->package as $package) {
if ($package->attributes()=='rpm') {
$ver = $package->version->attributes();
+ $loc = $package->location->attributes();
$input = array(
'repo_main' => $row['main'],
@@ -227,6 +228,7 @@ class Parser
'ver' => $ver['ver'],
'rel' => $ver['rel'],
'summary' => $package->summary,
+ 'location' => $loc['href'],
'url' => $package->url
);
if ($rpmtable->add($input)) {