summaryrefslogtreecommitdiffstats
path: root/fedcli.php
diff options
context:
space:
mode:
Diffstat (limited to 'fedcli.php')
-rwxr-xr-xfedcli.php13
1 files changed, 6 insertions, 7 deletions
diff --git a/fedcli.php b/fedcli.php
index 81bff3d..a58d47a 100755
--- a/fedcli.php
+++ b/fedcli.php
@@ -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) {