From f02d227cead78e5e00d4587c7ff9aba8642a58b2 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 23 May 2010 18:51:33 +0200 Subject: improves FedoraPkgdb->getPackageInfo() result --- FedoraClient.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'FedoraClient.php') 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) { -- cgit