Subversion Repositories SvarDOS

Rev

Rev 732 | Rev 910 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
188 mateuszvis 1
<h1>SvarDOS repository</h1>
285 mateuszvis 2
<p class="copyr">"the world of packages"</p>
188 mateuszvis 3
 
4
<p>This page lists all packages that are available in the SvarDOS repository. These packages can be downloaded from within SvarDOS using the pkgnet tool, or you can download them from here.</p>
5
 
896 bttr 6
<p>If you wish to receive notifications about new or updated packages, you may subscribe to the <a href="http://svn.svardos.org/rss.php?repname=SvarDOS&path=%2Fpackages%2F">SvarDOS Packages RSS feed</a>.</p>
7
 
188 mateuszvis 8
<?php
9
 
719 mateusz.vi 10
$db = json_decode(file_get_contents('../packages/_index.json'), true);
188 mateuszvis 11
 
12
echo "<table>\n";
13
 
14
echo "<thead><tr><th>PACKAGE</th><th>VERSION</th><th>DESCRIPTION</th></tr></thead>\n";
15
 
719 mateusz.vi 16
foreach ($db as $pkg => $meta) {
17
 
18
  $desc = $meta['desc'];
19
  $pref = array_shift($meta['versions']); // get first version (that's the preferred one)
20
  $ver = $pref['ver'];
21
  $bsum = $pref['bsum'];
22
 
23
  echo "<tr><td><a href=\"repo/?a=pull&amp;p={$pkg}\">{$pkg}</a></td><td>{$ver}</td><td>{$desc}</td></tr>\n";
188 mateuszvis 24
}
25
echo "</table>\n";
26
 
732 mateusz.vi 27
$errs = trim(file_get_contents('../packages/_buildidx.log'));
28
if (!empty($errs)) echo '<p style="color: #f00; font-weigth: bold;">Note to SvarDOS packagers: inconsistencies have been detected in the repository, please <a href="?p=repo&amp;showlogs=1#logs">review them</a>.</p>';
29
 
30
if ($_GET['showlogs'] == 1) {
31
  echo "<p style=\"font-size: 0.8em;\"><a name=\"logs\">DEBUG REPO BUILD LOGS</a>:<br>\n";
32
  if (empty($errs)) {
33
    echo "no buildidx errors to display\n";
34
  } else {
35
    echo nl2br(htmlentities($errs));
36
  }
37
  echo "</p>\n";
38
}
39
 
188 mateuszvis 40
?>