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
Name | Description | Date |
"This page",
"all.php" => "All Packages in Fedora",
"rpm.php" => "PHP Extensions in Fedora",
"refresh.php" => "The metadata refresh script launch twice a day by cron",
"zoom.php" => "Package detail");
$i=0;
foreach ($pages as $page => $name) if (is_file($page) && is_link($page."s")) {
$stat=stat($page);
printf ("%s | %s | %s |
\n",
($i%2 ? 'odd' : 'even'), $page, $page, $name, date("r", $stat["mtime"]));
$i++;
}
?>
Any feedback, RFE and patches are welcome.