Package: devscripts
Version: 2.16.5
Severity: normal
Tags: patch

Dear maintainer,

According to the manpage, the --newversion should append to the
current changelog entry if the current release is UNRELEASED:

| If DEBCHANGE_RELEASE_HEURISTIC is changelog (default) and the current
| release is UNRELEASED, this will only change the version of the
| current changelog stanza. Otherwise, this will create a new changelog
| stanza with the new version.

This doesn't hold when the --distribution option is being used. Instead,
a new changelog entry is created, leaving the old one (UNRELEASED) entry
intact.

I have provided a patch that fixes tha above error.

Cheers,

-- 
Ilias
diff --git a/scripts/debchange.pl b/scripts/debchange.pl
index db52b60..af6176c 100755
--- a/scripts/debchange.pl
+++ b/scripts/debchange.pl
@@ -1219,8 +1219,7 @@ if (($opt_i || $opt_n || $opt_bn || $opt_qa || $opt_R || $opt_s || $opt_team ||
 
     if (($opt_v or $opt_i or $opt_l or $opt_d) and
 	$opt_release_heuristic eq 'changelog' and
-	$changelog->{Distribution} eq 'UNRELEASED' and
-	$distribution eq 'UNRELEASED') {
+	$changelog->{Distribution} eq 'UNRELEASED') {
 
 	$merge = 1;
     } else {

Reply via email to