You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bigtop.apache.org by co...@apache.org on 2014/12/01 20:46:09 UTC

bigtop git commit: BIGTOP-1551: fix removing output dirs with symlinks to system dirs

Repository: bigtop
Updated Branches:
  refs/heads/master b165d0c7f -> 1d31bfd57


BIGTOP-1551: fix removing output dirs with symlinks to system dirs

Signed-off-by: Konstantin Boudnik <co...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo
Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/1d31bfd5
Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/1d31bfd5
Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/1d31bfd5

Branch: refs/heads/master
Commit: 1d31bfd579056678f4aac91406a5b281186adb04
Parents: b165d0c
Author: Olaf Flebbe <o....@science-computing.de>
Authored: Thu Nov 27 17:04:49 2014 +0100
Committer: Konstantin Boudnik <co...@apache.org>
Committed: Mon Dec 1 11:46:00 2014 -0800

----------------------------------------------------------------------
 packages.gradle | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bigtop/blob/1d31bfd5/packages.gradle
----------------------------------------------------------------------
diff --git a/packages.gradle b/packages.gradle
index a178b0b..92aa64b 100644
--- a/packages.gradle
+++ b/packages.gradle
@@ -233,7 +233,10 @@ def genTasks = { target, variable ->
       workingDir "$PKG_OUTPUT_DIR/$PKG_NAME-$PKG_VERSION$BIGTOP_BUILD_STAMP"
       commandLine command.split(' ')
     }
-    delete ("$PKG_OUTPUT_DIR/$PKG_NAME-$PKG_VERSION$BIGTOP_BUILD_STAMP")
+    exec {
+      workingDir "$PKG_OUTPUT_DIR"
+      commandLine 'rm','-rf',"$PKG_NAME-$PKG_VERSION$BIGTOP_BUILD_STAMP"
+    }
     touchTargetFile(BOM_map[variable + '_TARGET_DEB'])
   }
   // Guarantee that tasks are ran in the order set by BOM file