summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEudyptula <eitan@mosenkis.net>2009-06-17 17:00:32 -0400
committerEudyptula <eitan@mosenkis.net>2009-06-17 17:00:32 -0400
commitf1548fa3ca7caace9d129e424e820d8b072238bd (patch)
treed2259cfe34bda4f74655e23aeb5afa02710d973f /backend
parentGot frontend debug working, added basic images, fixed files to not be executable (diff)
downloadingenue-f1548fa3ca7caace9d129e424e820d8b072238bd.tar.gz
ingenue-f1548fa3ca7caace9d129e424e820d8b072238bd.tar.bz2
ingenue-f1548fa3ca7caace9d129e424e820d8b072238bd.zip
Move dbinit to shared and gave backend db access, created classes buildlog_entry, task; commented emerge system for faster testing
Diffstat (limited to 'backend')
-rwxr-xr-xbackend/backend.php2
-rw-r--r--backend/functions/build.php1
2 files changed, 3 insertions, 0 deletions
diff --git a/backend/backend.php b/backend/backend.php
index dd7be37..2f70b6e 100755
--- a/backend/backend.php
+++ b/backend/backend.php
@@ -1,6 +1,8 @@
#!/usr/bin/php
<?php
require_once(dirname(__FILE__).'/../shared/include/includes.php'); // USE __DIR__ once 5.3.0 is out
+require_once(SHARED.'/config.php');
+require_once(SHARED.'/include/dbinit.php');
$opts=getopt('f');
if (isset($opts['f'])) {
$f=pcntl_fork();
diff --git a/backend/functions/build.php b/backend/functions/build.php
index 5238e6b..e246dd5 100644
--- a/backend/functions/build.php
+++ b/backend/functions/build.php
@@ -39,6 +39,7 @@ function build() {
);
fatal(log_command($id, 'emerge --info', null, $env)!=0);
fatal(log_command($id, 'emerge -pv system', null, $env)!=0);
+ return;
fatal(log_command($id, 'emerge -v system', null, $env)!=0);
}
?>