summaryrefslogtreecommitdiffstats
path: root/FedoraClient.php
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2010-05-23 18:51:33 +0200
committerRemi Collet <fedora@famillecollet.com>2010-05-23 18:51:33 +0200
commitf02d227cead78e5e00d4587c7ff9aba8642a58b2 (patch)
treef01f700208af3abb3070035161da469c88db0961 /FedoraClient.php
parentfafd3ef12512c7a7832a93de14b668bed1922f1c (diff)
improves FedoraPkgdb->getPackageInfo() result
Diffstat (limited to 'FedoraClient.php')
-rw-r--r--FedoraClient.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/FedoraClient.php b/FedoraClient.php
index 1d0ce71..9aec851 100644
--- a/FedoraClient.php
+++ b/FedoraClient.php
@@ -149,7 +149,11 @@ class FedoraPkgdb extends FedoraClient {
$this->logDebug(1,__CLASS__."::".__FUNCTION__."($name) ".$rep['message']);
return false;
}
- return $rep;
+ $branches = array();
+ foreach ($rep['packageListings'] as $pack) {
+ $branches[$pack['collection']['branchname']] = $pack;
+ }
+ return $branches;
}
function getBranch($name, $refresh=false) {