From d8e79ebdcebf738ee5f8f3f36641ff0c751494c3 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 19 Feb 2012 10:52:47 +0100 Subject: SRPM url in f >= 17, fixed #159 --- class/Parser.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'class/Parser.php') 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)) { -- cgit