Package: maven-debian-helper
Severity: important
Tags: patch

When POMs are in patched state, there has to be debian/stamp-poms-patched
file existing. It is expected by mh_resolve_dependencies, which otherwise
deletes debian/[package].poms and regenerates it from scratch, discarding
any user specified parameters.

Patch mirrors this cdbs behavior into dh, where it was missing.

>From 820d09e2483ac1ec36e5fa6335d3175455612404 Mon Sep 17 00:00:00 2001
From: Jakub Adam <jakub.a...@ktknet.cz>
Date: Wed, 26 Jun 2013 19:22:16 +0200
Subject: [PATCH] Touch debian/stamp-poms-patched after mh_patchpoms is run

When POMs are in patched state, there has to be debian/stamp-poms-patched
file existing. It is expected by mh_resolve_dependencies, which otherwise
deletes debian/[package].poms and regenerates it from scratch, discarding
any user specified parameters.

Patch mirrors this cdbs behavior into dh, where it was missing.
---
 share/perl/maven.pm |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/share/perl/maven.pm b/share/perl/maven.pm
index 00520df..f752e55 100644
--- a/share/perl/maven.pm
+++ b/share/perl/maven.pm
@@ -62,6 +62,7 @@ sub configure {
 	$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");
 }
 
 sub build {
@@ -119,6 +120,7 @@ sub clean {
 		doit("rm", "-r", "$this->{cwd}/debian/maven-repo");
 	}
 	$this->doit_in_sourcedir("mh_unpatchpoms", "-p$this->{package}");
+	doit("rm", "-f", "debian/stamp-poms-patched");
 	doit("mh_clean");
 }
 
-- 
1.7.10.4

Reply via email to