Packages in Fedora repositories
Package reports
Analysed repositories
\n";
echo "
Main | Active | Sub | Url | Last update |
---|
\n";
$sql='SELECT * FROM repo ORDER BY ID';
$res=$db->query($sql);
if ($res) for ($i=0, $prev="xx" ; $repo=$res->fetchObject() ; $i++, $prev=$repo->main) {
printf ("
%s | %s | %s | %s | %s |
\n",
($i%2 ? 'odd' : 'even'),
($repo->main != $prev ? $repo->main : " "),
($repo->main != $prev ? ($repo->active ? "
Yes" : "no") : " "),
$repo->sub, $repo->url, $repo->url, date("r", $repo->stamp));
}
echo "\n";
}
catch(PDOException $e) {
printf("%s ERREUR : %s\n", date("r"), $e->getMessage());
}
?>
Script sources