1) {
$groups[$p[0]][] = $package;
} else {
$groups[$package][] = $package;
}
}
}
$s = count($groups) . ' groups for ' . count($data) . ' packages.';
$s .= '
';
$s .= array_reduce($groups, function ($res, $el) {
return $res . '- ' . implode(', ', array_map(function ($ela) {
$spec_url = sprintf('http://svnweb.mageia.org/packages/cauldron/%s/current/SPECS/%s.spec?view=markup', $ela, $ela);
return sprintf('%s', $spec_url, $ela);
}, $el)) . '
';
});
$s .= '';
echo <<
ul.groups { list-style: none; margin: 0; padding: 0; }
ul.groups li { display: inline-block; padding: 1em; background: #eee; margin: 1px; font-family: Verdana; font-size: 70%; }
Unmaintained packages
Pick one and become a Mageia packager super-hero! (TODO how? why?)
A group means that you may want to pick all packages within the same group, for consistency and efficiency.
Don't hesitate to ask on #mageia-dev, and to notify if you take maintenance of one package.
$s
S;