summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2011-01-12 11:52:13 +0000
committerPascal Terjan <pterjan@mageia.org>2011-01-12 11:52:13 +0000
commit45f946c65e2ba16431dd315f45cf49bd7199a9fd (patch)
treefe184ba33bdbbeed19412e05cf9bbf528157e42c /index.php
parentaf23cc2d20af05ff094237b21428a3a7f0a94e0c (diff)
downloadpkgsubmit-45f946c65e2ba16431dd315f45cf49bd7199a9fd.tar
pkgsubmit-45f946c65e2ba16431dd315f45cf49bd7199a9fd.tar.gz
pkgsubmit-45f946c65e2ba16431dd315f45cf49bd7199a9fd.tar.bz2
pkgsubmit-45f946c65e2ba16431dd315f45cf49bd7199a9fd.tar.xz
pkgsubmit-45f946c65e2ba16431dd315f45cf49bd7199a9fd.zip
Use a subdirectory for data, to be writable by apache and fix a syntax error
Diffstat (limited to 'index.php')
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index 93019b1..762e76c 100644
--- a/index.php
+++ b/index.php
@@ -16,6 +16,7 @@ $title = "Mageia build system status";
$tz = new DateTimeZone("UTC");
# Temporary until initial mirror is ready
+chdir("data");
$nb_rpm = shell_exec('rpm -qp --qf "%{SOURCERPM}\n" /distrib/bootstrap/distrib/cauldron/i586/media/core/release/*.rpm | sort -u | tee src.txt | wc -l');
$nb_rpm_mga = shell_exec('grep mga src.txt | tee src.mga.txt | wc -l');
shell_exec('grep -v mga src.txt > src.mdv.txt');
@@ -172,7 +173,6 @@ foreach ($pkgs as $key => $p) {
echo $p["type"];
if ($typelink)
echo "</a>";
- }
echo "</td>\n";
echo "</tr>\n";
}