summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEudyptula <eitan@mosenkis.net>2009-07-15 19:42:53 -0400
committerEudyptula <eitan@mosenkis.net>2009-07-15 19:42:53 -0400
commit5634227db6e7264c908a582685770b88f6ba69e5 (patch)
tree7336adddf8f447a1ae927cfb8d2f691b4eefb121 /backend/backend.php
parentAdded viewing of chosen options to status viewer (diff)
downloadingenue-5634227db6e7264c908a582685770b88f6ba69e5.tar.gz
ingenue-5634227db6e7264c908a582685770b88f6ba69e5.tar.bz2
ingenue-5634227db6e7264c908a582685770b88f6ba69e5.zip
Divided gentoo_portage backend into several parts; Added another config step to choose which options to offer next; Added timezone selection; Fixed pkglist script; Little fixes
Diffstat (limited to 'backend/backend.php')
-rwxr-xr-xbackend/backend.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/backend/backend.php b/backend/backend.php
index 6ba8af6..1f05d6f 100755
--- a/backend/backend.php
+++ b/backend/backend.php
@@ -67,9 +67,7 @@ while (true) {
}
$opts=$build->get_opts();
$build_proc=$build->module.'_build';
- foreach (glob(BACKEND."/modules/$build->module/*.php") as $inc) {
- require_once($inc);
- }
+ require_once(BACKEND."/modules/$build->module/build.php");
// TODO check that build_proc exists
$workdir=WORK.'/build-'.$build->id;
fatal(log_status('Creating work directory '.$workdir, mkdir($workdir, 0700)));
@@ -118,7 +116,7 @@ while (true) {
} else {
$build->status='finished/success';
$base=basename($file);
- $ext=substr($base, substr($base, strpos($base, '.')));
+ $ext=substr($base, strpos($base, '.'));
rename($file, COMPLETED.'/build-'.$build->id.$ext);
}
xhtmlemail('"'.$owner->name.'" <'.$owner->email.'>', null, $conf['title'].' build finished', 'Your build has completed successfully. You can find more information and download the completed image at <a href="'.url('logs/'.$build->id).'">'.url('logs/'.$build->id).'</a>');