diff options
author | Remi Collet <fedora@famillecollet.com> | 2010-05-23 18:51:33 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2010-05-23 18:51:33 +0200 |
commit | f02d227cead78e5e00d4587c7ff9aba8642a58b2 (patch) | |
tree | f01f700208af3abb3070035161da469c88db0961 /fedcli.php | |
parent | fafd3ef12512c7a7832a93de14b668bed1922f1c (diff) |
improves FedoraPkgdb->getPackageInfo() result
Diffstat (limited to 'fedcli.php')
-rwxr-xr-x | fedcli.php | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -87,17 +87,16 @@ function Package() { if (!$rep) { die("Package not found\n"); } - if (isset($rep['title'])) { - echo $rep['title']."\n"; - } + $first = true; - foreach ($rep['packageListings'] as $pack) { + foreach ($rep as $branch => $pack) { if ($first) { $first = false; - echo 'Summary: '.$pack['package']['summary']."\n"; - echo 'Description: '.$pack['package']['description']."\n"; + echo 'Name: '.$pack['package']['name']."\n"; + echo 'Summary: '.$pack['package']['summary']."\n"; + echo "Description:\n".$pack['package']['description']."\n"; } - echo $pack['collection']['branchname'].": ".$pack['owner']; + echo $branch.":\t".$pack['owner']; $i=0; foreach ($pack['people'] as $user) { |