Bug#874718: debchange doesn't allow empty changelog entry

Osamu Aoki osamu at debian.org
Sat Sep 9 22:37:35 UTC 2017


control: retitle -1 dch -u "" creates undesired changelog entry

Hi,

On Sat, Sep 09, 2017 at 10:22:14AM +0100, Adam D. Barratt wrote:
> [You appear to have filed this bug 3 times. Maybe you want to close
> #874717 and #874716?]

I guess I need to fix my mailer set up.
(This mail may be tripled.)
I will close duplicates.
 
> On Sat, 2017-09-09 at 15:08 +0900, Osamu Aoki wrote:
> > If "" is the text to be added to the changelog, debchange skips
> > making line
> > with "*".  This seems to intentional design decision of debchange
> > which I have
> > no idea why.  (Code logic around it is a bit complicated.  So I may
> > be wrong)
> [...]
> > If no objection, I will try to update debchange.
> 
> The changelog says why:
> 
>     + Allow an explicit empty changelog entry to be passed on the command line
>       to allow non-interactive changes to the distribution and urgency without
>       adding a changelog entry (Closes: #442267)

Thanks for a pointer. 

> Is what you're looking for a valid changelog stanza that doesn't
> contain an actual message? If so, would "dch ' '" suffice? (It doesn't
> add a space after the "*", and I can't remember if that's intentional,
> but it _does_ produce a changelog that dpkg-parsechangelog is happy
> with.)

OK I didn't realize white space trick.  I was using null string.
So now I know the solution for uupdate but still see issues with
debchange.

This null string as argument is supposed to avoid interactive session
like the case without text while not adding any extra line like space as
text.

 $ dch -u high ""

This should simply update urgency.  But it doesn't do so.

Please look into attached tared git repository with test case results.
Look at branch osamu-null-u.  All but test01 cases create bad changelog
entry.  The following type of addition should not happen.

+  [ Osamu Aoki ]
+

Regards,

Osamu

-------------- next part --------------
A non-text attachment was scrubbed...
Name: dch-tests.tar.xz
Type: application/x-xz
Size: 53152 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/devscripts-devel/attachments/20170910/1d7d42af/attachment-0003.bin>


More information about the devscripts-devel mailing list