[gradle-debian-helper] 01/03: Spawn a shell explicitly when necessary in the doit() calls of the DH buildsystem (Closes: #869363)

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Mon Sep 25 22:41:39 UTC 2017


This is an automated email from the git hooks/post-receive script.

ebourg-guest pushed a commit to branch master
in repository gradle-debian-helper.

commit 89a13b28d91e86a14c95c2055f703f0990cf59f5
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Tue Sep 26 00:31:14 2017 +0200

    Spawn a shell explicitly when necessary in the doit() calls of the DH buildsystem (Closes: #869363)
---
 debian/changelog                             | 7 +++++++
 gradle-helper-plugin/src/main/perl/gradle.pm | 4 ++--
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index bf80ce8..0debc9e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,15 @@
 gradle-debian-helper (1.5.2) UNRELEASED; urgency=medium
 
   * Team upload.
+
+  [ tony mancill ]
   * Add -Dfile.encoding=UTF-8 to gradle command-line. (Closes: #855262)
 
+  [ Emmanuel Bourg ]
+  * Spawn a shell explicitly when necessary in the doit() calls of the DH
+    buildsystem (prevents a warning with DH 10 and an error with DH 11)
+    (Closes: #869363)
+
  -- tony mancill <tmancill at debian.org>  Mon, 20 Feb 2017 08:23:38 -0800
 
 gradle-debian-helper (1.5.1) unstable; urgency=medium
diff --git a/gradle-helper-plugin/src/main/perl/gradle.pm b/gradle-helper-plugin/src/main/perl/gradle.pm
index 0a759a6..085f3c0 100644
--- a/gradle-helper-plugin/src/main/perl/gradle.pm
+++ b/gradle-helper-plugin/src/main/perl/gradle.pm
@@ -67,8 +67,8 @@ sub build {
 sub clean {
 	my $this=shift;
 
-	$this->doit_in_builddir("find . -wholename .*build/tmp | xargs echo | sed -e 's^build/tmp^build^g' | xargs rm -Rf");
-	$this->doit_in_builddir("find . -wholename .*build/debian | xargs echo | sed -e 's^build/tmp^build^g' | xargs rm -Rf");
+	$this->doit_in_builddir("sh", "-c", "find . -wholename .*build/tmp | xargs echo | sed -e 's^build/tmp^build^g' | xargs rm -Rf");
+	$this->doit_in_builddir("sh", "-c", "find . -wholename .*build/debian | xargs echo | sed -e 's^build/tmp^build^g' | xargs rm -Rf");
 	$this->doit_in_builddir("rm", "-Rf", "$this->{cwd}/.gradle", "$this->{cwd}/buildSrc/.gradle", ".m2");
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/gradle-debian-helper.git



More information about the pkg-java-commits mailing list