FS#31754 - Make repo management more 'scriptable'

Attached to Project: Pacman
Opened by JB (techryda) - Monday, 01 October 2012, 14:02 GMT
Last edited by Andrew Gregory (andrewgregory) - Monday, 16 March 2015, 13:38 GMT
Task Type Feature Request
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

See https://bbs.archlinux.org/viewtopic.php?id=149869 for background

Parsing pacman.conf from a script to add/remove or enable/disable repos is difficult
(difficult: meaning can't be easily accomplished w/sed, grep and echo)

Rather than having a list of repos in pacman.conf, repos could be stored
in individual .repo files in /etc/pacman.d/repos/available/.
Active repos would be copied/created in /etc/pacman.d/repos/active/
The .repo files would be prefixed w/a number so the could be ordered like udev rules

i.e.
40_core.repo
50_extra.repo
70_community.repo

A configuration directive RepoDir= would be added to pacman.conf and perhaps a pacman switch also
for specifying an alternate directory.
This task depends upon

Closed by  Andrew Gregory (andrewgregory)
Monday, 16 March 2015, 13:38 GMT
Reason for closing:  Won't implement
Comment by Andrew Gregory (andrewgregory) - Wednesday, 11 March 2015, 20:36 GMT
This can be achieved by using Include with a glob: Include = /etc/pacman.d/repos/*.repo

Loading...