Re: Request for feedback: debcraft improve

Otto Kekäläinen <[email protected]>
Newsgroups gmane.linux.debian.devel.general
Message-ID <CAOU6tAA1YFFCgy-awvsuZ0SNDnh5KTA08TAE6_D=kvPU5+2qEQ@mail.gmail.com>
Hi,

Thanks for testing!

> 1. Its loosing d/copyright information:

Seems there is a but in the sed commands in
https://salsa.debian.org/debian/debcraft/-/blob/main/src/container/improve.d/copyright-years.sh
that does this. I will need to debug and fix it.

> 2. Depends are sorted alphabethically - fine so far.  I could
>    imagine there are maintainers who want to keep a certain
>    sorting.  Can this feature be somehow suppressed?

This is how wrap-and-sort -ast works. Formatting is in
https://salsa.debian.org/debian/debcraft/-/blob/main/src/container/improve.d/formatting.sh

I wish wrap-and-sort had good defaults and that we all could simply
run 'wrap-and-sort' without any options. However this is not the case,
and I think the "golden standard" fo rmost people is to run it with
-ast (see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=895570).
Having tools that automatically format and fix packages is
unreasonably hard to implement if a lot of people have personal
preferences on the details.

Thanks for the feedback!

- Otto
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.