diff options
author | 2009-07-02 18:01:25 -0400 | |
---|---|---|
committer | 2009-07-02 18:01:25 -0400 | |
commit | 2c1a22a8eeea460db4cb326554ba7da5a37a5324 (patch) | |
tree | 8d112eb07b6135ceaca02490156bf762e9fa2edd /shared | |
parent | Added support for EXT2 and JFFS2 images (diff) | |
download | ingenue-2c1a22a8eeea460db4cb326554ba7da5a37a5324.tar.gz ingenue-2c1a22a8eeea460db4cb326554ba7da5a37a5324.tar.bz2 ingenue-2c1a22a8eeea460db4cb326554ba7da5a37a5324.zip |
Backend can upload finished images; caches state after emerge system completes
Diffstat (limited to 'shared')
-rw-r--r-- | shared/classes/build.php | 2 | ||||
-rw-r--r-- | shared/include/paths.php | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/shared/classes/build.php b/shared/classes/build.php index 3d37ec3..9b2decc 100644 --- a/shared/classes/build.php +++ b/shared/classes/build.php @@ -100,6 +100,8 @@ class sql_build extends sql_row_obj { $html.='<span class="status successful">[successful]</span><br/><span class="links"><a href="'.url('download/'.$this->id).'">Download image</a> • <a href="'.url('logs/'.$this->id).'">Build log</a></span>'; } elseif ($status[0] == 'failed') { $html.='<span class="status failed">[failed: '.htmlentities($status[1]).']</span><br/><span class="links"><a href="'.url('logs/'.$this->id.'/failure').'">View output of failed command</a> • <a href="'.url('logs/'.$this->id).'">Build log</a></span>'; + } elseif ($status[0] == 'uploading') { + $html.='<span class="status successful">[uploading]</span><br/><span class="links"><a href="'.url('logs/'.$this->id).'">Build log</a></span>'; } else { throw_exception('Unrecognized build status '.$this->status); } diff --git a/shared/include/paths.php b/shared/include/paths.php index c9f681e..1efc9d3 100644 --- a/shared/include/paths.php +++ b/shared/include/paths.php @@ -5,6 +5,7 @@ $paths['backend']=realpath($paths['root'].'/backend'); $paths['frontend']=realpath($paths['root'].'/frontend'); $paths['work']=realpath($paths['root'].'/work'); $paths['completed']=realpath($paths['root'].'/completed'); +$paths['cache']=realpath($paths['root'].'/cache'); foreach ($paths as $name => $dest) { define(strtoupper($name), $dest); } |