fetch_assoc()) {
$row['move_date'] = substr($row['last_moved'], 0, 10);
$groups[] = $row;
}
print_header('Package Groups');
print "
\n";
print "
Package Groups Overview
\n";
print_listing($groups, true, 'group');
print " \n";
print_footer();
die();
}
if (count($uri_parts) != 1)
throw_http_error(422, 'Unprocessable Entity');
$group = $uri_parts[0];
$group_filter = '`install_targets`.`name`=from_base64("' . base64_encode($group) . '")';
$packages = query_package_listing(
mysql_join_binary_packages_install_target_providers() .
mysql_join_install_target_providers_install_targets() .
' WHERE ' . $arch_filter .
' AND ' . $group_filter,
'',
array(),
false,
true
);
if (count($packages) == 0)
throw_http_error(404, 'Not Found');
print_header('Group Details');
print " \n";
print "
\n";
print " Group Details - " . $group . " (" . $repo_arch . ")\n";
print "
\n";
print "
" . count($packages) . " packages found.
\n";
print_listing($packages, true, 'package');
print "
\n";
print_footer();