--- share/perl/
maven.pm 2017-10-10 06:09:58.997821332 +0100
+++ /usr/share/perl5/Debian/Debhelper/Buildsystem/
maven.pm 2017-11-26 08:40:02.469699934 +0000
@@ -119,10 +119,13 @@
# clean up generated docs
$this->doit_in_builddir("bash", "-c", "rm -f target/apidocs/*.sh target/apidocs/options");
}
+ $this->doit_in_sourcedir("mh_unpatchpoms", "-p$this->{package}");
+ doit("rm", "-f", "debian/stamp-poms-patched");
}
sub clean {
my $this=shift;
+ my @patch_args;
# If this directory if absent, we must not have anything to clean;
# don't populate the directory just to run a clean target.
@@ -132,6 +135,13 @@
push(@_, "clean");
}
+ if (! -e "debian/stamp-poms-patched") {
+ $this->doit_in_sourcedir("mh_patchpoms", "-p$this->{package}",
+ "--debian-build", "--keep-pom-version",
+ "--maven-repo=$this->{cwd}/debian/maven-repo", @patch_args);
+ doit("touch", "debian/stamp-poms-patched");
+ }
+
$this->doit_in_builddir_noerror(@{$this->{maven_cmd}}, @_);
doit("rm", "-r", "$this->{cwd}/debian/maven-repo");
}