#1095305 modernize-sources should not discard comments

Package:
apt
Source:
apt
Description:
commandline package manager
Submitter:
Dan Ritter
Date:
2025-02-25 20:45:04 UTC
Severity:
normal
#1095305#5
Date:
2025-02-06 19:58:15 UTC
From:
To:
apt modernize-sources apparently discards comments found in apt source
list files, which may be notes for humans or temporarily unused
data sources.

They should be retained as comments.

#1095305#10
Date:
2025-02-19 23:19:12 UTC
From:
To:
As it's the pattern used in there.

Thank you.
source

#1095305#15
Date:
2025-02-25 20:42:51 UTC
From:
To:
Control: severity -1 wishlist

We are aware, we do not have access to the sources.list parser state,
only very processed objects further down the stack.

But even with access, comments are complicated, because you now
need to associate the comments with entries.