Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 59235 - [PATCH] etc-update selective path (on command line) addition
Summary: [PATCH] etc-update selective path (on command line) addition
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All All
: High enhancement
Assignee: Portage team
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2004-08-03 00:40 UTC by Cory Visi (RETIRED)
Modified: 2012-03-11 02:45 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
etc-update.patch (etc-update.patch,722 bytes, patch)
2004-08-03 00:41 UTC, Cory Visi (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Cory Visi (RETIRED) gentoo-dev 2004-08-03 00:40:43 UTC
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
Comment 1 Cory Visi (RETIRED) gentoo-dev 2004-08-03 00:41:16 UTC
Created attachment 36689 [details, diff]
etc-update.patch
Comment 2 Cory Visi (RETIRED) gentoo-dev 2004-08-03 01:34:56 UTC
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.
Comment 3 Radek Podgorny 2005-05-14 17:31:23 UTC
...any progress on this?
Comment 4 Harald van Dijk (RETIRED) gentoo-dev 2005-05-15 01:17:11 UTC
Hmm, basically it's an easier way of typing
CONFIG_PROTECT="-* /etc/X11 /etc/init.d" etc-update
if I'm understanding this right?
Comment 5 Cory Visi (RETIRED) gentoo-dev 2005-05-17 10:10:07 UTC
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.
Comment 6 Jason Stubbs (RETIRED) gentoo-dev 2005-07-28 07:25:30 UTC
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. ;) 
Comment 7 Marius Mauch (RETIRED) gentoo-dev 2007-01-11 13:24:03 UTC
Reopening for consideration.
Comment 8 Daevid Vincent 2007-12-19 02:13:39 UTC
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.
Comment 9 SpanKY gentoo-dev 2012-03-11 02:45:11 UTC
thanks for the suggestion.  implemented in git now.

http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commitdiff;h=188aedeb2822f5c86a0586fd3350800565da5c6c