FS#46783 - [pacman] IncludeConf configuration option

Attached to Project: Pacman
Opened by Evgeniy Alexeev (arcan1s) - Sunday, 18 October 2015, 21:37 GMT
Last edited by Dave Reisner (falconindy) - Sunday, 18 October 2015, 22:08 GMT
Task Type Feature Request
Category General
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 4.2.1
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I believe that it would be great if the directive "IncludeConf" will be implemented to the pacman configuration.

It will be useful if an user has several pacman configurations which differ only in repository settings (e.g. special configuration for for [testing] repositories), for example. It allows an user maintains only one main configuration with ignore lists, paths, etc. I'd like to suggest the following implementation:

/etc/pacman.conf <- main configuration
/etc/pacman-with-testing-enabled.conf <- additional configuration
/etc/pacman.conf.in <- common declarations

cat /etc/pacman.conf.in
<snip>
IgnorePkg = pacman
<snip>

cat /etc/pacman{,-with-testing-enabled}.conf
<snip>
IncludeConf = /etc/pacman.conf.in
# the ignore option is already declared in the include file
#IgnorePkg =
<snip>

As a possible implementation I believe that the include file may be just placed as plain text replacing the "IncludeConf" string. As an additional feature it would be great if this option may be set multiple times.
This task depends upon

Closed by  Dave Reisner (falconindy)
Sunday, 18 October 2015, 22:08 GMT
Reason for closing:  Works for me
Additional comments about closing:  Already implemented with the 'Include' directive

Loading...