Subversion Repositories SvarDOS

Rev

Rev 719 | 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
 
6
<?php
7
 
719 mateusz.vi 8
$db = json_decode(file_get_contents('../packages/_index.json'), true);
188 mateuszvis 9
 
10
echo "<table>\n";
11
 
12
echo "<thead><tr><th>PACKAGE</th><th>VERSION</th><th>DESCRIPTION</th></tr></thead>\n";
13
 
719 mateusz.vi 14
foreach ($db as $pkg => $meta) {
15
 
16
  $desc = $meta['desc'];
17
  $pref = array_shift($meta['versions']); // get first version (that's the preferred one)
18
  $ver = $pref['ver'];
19
  $bsum = $pref['bsum'];
20
 
21
  echo "<tr><td><a href=\"repo/?a=pull&amp;p={$pkg}\">{$pkg}</a></td><td>{$ver}</td><td>{$desc}</td></tr>\n";
188 mateuszvis 22
}
23
echo "</table>\n";
24
 
732 mateusz.vi 25
$errs = trim(file_get_contents('../packages/_buildidx.log'));
26
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>';
27
 
28
if ($_GET['showlogs'] == 1) {
29
  echo "<p style=\"font-size: 0.8em;\"><a name=\"logs\">DEBUG REPO BUILD LOGS</a>:<br>\n";
30
  if (empty($errs)) {
31
    echo "no buildidx errors to display\n";
32
  } else {
33
    echo nl2br(htmlentities($errs));
34
  }
35
  echo "</p>\n";
36
}
37
 
188 mateuszvis 38
?>