This is a very simple patch to etc-update that adds a command-line option to specify a list of paths to search for config file updates (rather than just CONFIG_PROTECT). The intention here is to allow users to selectively update parts of their config tree. Often I found it's very easy to merge in all the vendor updates to certain portions of the tree, for instance /etc/X11/xdm and /etc/init.d. Frankly, the number of config file updates can be overwhelming at times and I think this leads to lethargy in keeping up to date. This is just a small step in helping to divide and conquer. Example usage: # etc-update /etc/X11 /etc/init.d
Created attachment 36689 [details, diff] etc-update.patch
I should note that this obviously does not handle pathnames with spaces in them, but neither does most of etc-update. If enough people think it's worth it, I'll try to correc this.
...any progress on this?
Hmm, basically it's an easier way of typing CONFIG_PROTECT="-* /etc/X11 /etc/init.d" etc-update if I'm understanding this right?
Yeah, that seems to do the same thing. However, I don't believe that etc-update did anything with CONFIG_PROTECT when I wrote this patch. I don't know how I feel about this now. It's silly to add redundant functionality, but I honestly think this is a much better way of handling the situation. CONFIG_PROTECT is a Gentoo variable and has been for awhile, but it seems a little unintuitive to change it for the sake of etc- update. However, I will go along with the majority opinion on this one.
Putting a hold on feature requests for portage as they are drowning out the bugs. Most of these features should be available in the next major version of portage. But for the time being, they are just drowning out the major bugs and delaying the next version's progress. Any bugs that contain patches and any bugs for etc-update or dispatch-conf can be reopened. Sorry, I'm just not good enough with bugzilla. ;)
Reopening for consideration.
I would love this enhancement. I was just about to add a feature request for this very thing as I have about 100 changes in /usr/share/X11/xkb that need to be updated, but I have others that I don't want to take the time to manually diff just yet.
thanks for the suggestion. implemented in git now. http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commitdiff;h=188aedeb2822f5c86a0586fd3350800565da5c6c