Permalink
Browse files

Merge branch 'hotfix-1.1.1' into next

  • Loading branch information...
chriskite committed Mar 29, 2012
2 parents d75c52b + e6cf4fe commit 3d834d8e3dcd9db0a95970ab6cbf13cd74806ed8
Showing with 7 additions and 1 deletion.
  1. +7 −1 script/tasks
View
@@ -23,6 +23,8 @@ function build_release($release, $project) {
$repo_probe = $container->get('RepoProbe');
$gateway_releases = $container->get('ReleaseGateway');
$shell = $container->get('Shell');
+ $local_copy = null;
+
try {
$repo = $repo_probe->getRepositoryAccess($project);
if ($release->mode() == 'auto') {
@@ -36,7 +38,6 @@ function build_release($release, $project) {
$files->traverse($project->path(), $project->ignore(), $project->destination());
$builder = $container->get('PackageBuilder');
$builder->build($local_copy, $files, $project, $release->version(), $stability);
- $local_copy->destroy($shell);
$release->setCompleted();
$gateway_releases->update(
$release,
@@ -53,6 +54,11 @@ function build_release($release, $project) {
echo "Caught Exception at " . __FILE__ . " : " . __LINE__ . "\n";
echo $ex;
}
+
+ // Clean up working copy from temp folder
+ if(null !== $local_copy) {
+ $local_copy->destroy($shell);
+ }
}
function task_rebuild_release($project_name, $release_version) {

0 comments on commit 3d834d8

Please sign in to comment.