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

Reply via email to