Subversion Repositories SvarDOS

Rev

Rev 732 | Rev 910 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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