#885425 software-properties-common: add-apt-repository edits all existing source files, reformatting them

Package:
python3-apt
Source:
python-apt
Description:
Python 3 interface to libapt-pkg
Submitter:
AG
Date:
2017-12-27 00:03:04 UTC
Severity:
wishlist
#885425#5
Date:
2017-12-26 23:34:04 UTC
From:
To:
Dear Maintainer,

the helper tool
        add-apt-repository
modifies all existing source files
        sources.list
        sources.list.d/*
reformatting the comments unnecessarily.

Example of the change:

-#deb [arch=amd64,i386] http://ftp.de.debian.org/debian/ unstable main contrib non-free
+# deb [arch=amd64,i386] http://ftp.de.debian.org/debian/ unstable main contrib non-free


I do expect a "Debian" tool to perform the requested task minimally, and not
to unexpectedly touch all available files in a folder.
The repository i requested to add was actually added at the very end of
sources.list.

The tool should either add a new file in sources.list.d, or add a line in
sources.list, even better ask/prompt the user.

Thanks!

#885425#10
Date:
2017-12-27 00:02:20 UTC
From:
To:
Control: severity -1 wishlist
Control: reassign -1 python3-apt
Control: tag -1 wontfix

Well, it's not that easy. And this is a minor cosmetic difference you
have to live with - I'm not going to risk stuff by playing with the
algorithms there. It's fragile enough already :(