Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 703646

Summary: app-eselect/eselect-repository leaves empty lines in repos.conf
Product: Gentoo Linux Reporter: charles17
Component: Current packagesAssignee: Michał Górny <mgorny>
Status: UNCONFIRMED ---    
Severity: normal CC: jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description charles17 2019-12-24 08:09:54 UTC
Using "eselect repository remove" leaves an empty line at the end when removing the latest entry from /etc/portage/repos.conf


repos.conf before adding additional repository:
$ cat /etc/portage/repos.conf
[testing]
location = /var/db/repos/testing
auto-sync = no

[brother-overlay]
location = /var/db/repos/brother-overlay
sync-type = git
sync-uri = https://github.com/gentoo-mirror/brother-overlay.git

[gentoo]
location = /var/db/repos/gentoo
sync-type = rsync
sync-uri = rsync://rsync.de.gentoo.org/gentoo-portage/


After "eselect repository enable vortex"
$ cat /etc/portage/repos.conf
[testing]
location = /var/db/repos/testing
auto-sync = no

[brother-overlay]
location = /var/db/repos/brother-overlay
sync-type = git
sync-uri = https://github.com/gentoo-mirror/brother-overlay.git

[gentoo]
location = /var/db/repos/gentoo
sync-type = rsync
sync-uri = rsync://rsync.de.gentoo.org/gentoo-portage/

[vortex]
location = /var/db/repos/vortex
sync-type = git
sync-uri = https://github.com/gentoo-mirror/vortex.git


After "eselect repository remove vortex" there is an empty line at the end.

After again "eselect repository enable vortex"
$ cat /etc/portage/repos.conf
[testing]
location = /var/db/repos/testing
auto-sync = no

[brother-overlay]
location = /var/db/repos/brother-overlay
sync-type = git
sync-uri = https://github.com/gentoo-mirror/brother-overlay.git

[gentoo]
location = /var/db/repos/gentoo
sync-type = rsync
sync-uri = rsync://rsync.de.gentoo.org/gentoo-portage/


[vortex]
location = /var/db/repos/vortex
sync-type = git
sync-uri = https://github.com/gentoo-mirror/vortex.git


So empty lines are getting more and more between the entries.