diff options
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) { |