Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1232034 > unrolled thread

Bug#1095305: modernize-sources should not discard comments

Started byDan Ritter <dsr@randomstring.org>
First post2025-02-06 21:10 +0100
Last post2025-02-25 21:50 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.debian.bugs.dist


Contents

  Bug#1095305: modernize-sources should not discard comments Dan Ritter <dsr@randomstring.org> - 2025-02-06 21:10 +0100
    Bug#1095305: modernize-sources should not discard comments Julian Andres Klode <jak@debian.org> - 2025-02-25 21:50 +0100

#1232034 — Bug#1095305: modernize-sources should not discard comments

FromDan Ritter <dsr@randomstring.org>
Date2025-02-06 21:10 +0100
SubjectBug#1095305: modernize-sources should not discard comments
Message-ID<Kdgmd-eVbw-5@gated-at.bofh.it>
Package: apt
Version: 2.9.26
Severity: normal

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.

[toc] | [next] | [standalone]


#1235037

FromJulian Andres Klode <jak@debian.org>
Date2025-02-25 21:50 +0100
Message-ID<Kka2m-1Xm3-13@gated-at.bofh.it>
In reply to#1232034
Control: severity -1 wishlist

On Thu, Feb 06, 2025 at 02:58:15PM -0500, Dan Ritter wrote:
> 
> Package: apt
> Version: 2.9.26
> Severity: normal
> 
> 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.
> 

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.

-- 
debian developer - deb.li/jak | jak-linux.org - free software dev
ubuntu core developer                              i speak de, en

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.bugs.dist


csiph-web