diff mbox series

[Unstable] UBUNTU: [Package] add support for specifying the primary makefile

Message ID 20181030104141.5316-1-kleber.souza@canonical.com
State New
Headers show
Series [Unstable] UBUNTU: [Package] add support for specifying the primary makefile | expand

Commit Message

Kleber Sacilotto de Souza Oct. 30, 2018, 10:41 a.m. UTC
From: Andy Whitcroft <apw@canonical.com>

BugLink: https://bugs.launchpad.net/bugs/1786013

Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
---
Note: this patch has already been applied to T/X/B/C master-next
branches and it's needed only for unstable (D).

This is needed to fix an issue with the changelog of backports of
derivatives, where the config changes carried out from the original
derivative applied by the 'Start new release' commit is never added to
the changelog. Copying the changelog entries from the original derivative
instead of the master branch solves this problem.

 debian/scripts/misc/insert-ubuntu-changes | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

Comments

Thadeu Lima de Souza Cascardo Oct. 31, 2018, 9:17 a.m. UTC | #1
Acked and applied to unstable master branch.

Thanks.
Cascardo.

Applied-to: unstable/master
diff mbox series

Patch

diff --git a/debian/scripts/misc/insert-ubuntu-changes b/debian/scripts/misc/insert-ubuntu-changes
index 145c81c5dbd3..20864874ddba 100755
--- a/debian/scripts/misc/insert-ubuntu-changes
+++ b/debian/scripts/misc/insert-ubuntu-changes
@@ -1,9 +1,12 @@ 
 #!/usr/bin/perl
 
-if ($#ARGV != 2) {
-	die "Usage: $0 <changelog> <stop at> <start at>\n";
+if ($#ARGV != 2 && $#ARGV != 3) {
+	die "Usage: $0 <changelog> <stop at> <start at> [<source changelog>]\n";
 }
-my ($changelog, $end, $start) = @ARGV;
+if ($#ARGV == 2) {
+	push(@ARGV, "debian.master/changelog")
+}
+my ($changelog, $end, $start, $source_changelog) = @ARGV;
 
 $end =~ s/^\D+//;
 $start =~ s/^\D+//;
@@ -32,7 +35,7 @@  sub version_cmp($$) {
 
 my @changes = ();
 my $output = 0;
-open(CHG, "<debian.master/changelog") ||
+open(CHG, "<$source_changelog") ||
 	open(CHG, "<debian/changelog") ||
 	die "$0: debian/changelog: open failed - $!\n";
 while (<CHG>) {