Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 48218 - etc-update option -3 does not function
Summary: etc-update option -3 does not function
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-04-18 07:23 UTC by Colin JN Breame
Modified: 2005-07-14 06:58 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Colin JN Breame 2004-04-18 07:23:59 UTC
When using etc-update, and "auto merge all remaining files" (-3), it it impossible to say no and continue through the list of config files.

If you dont want to update a file, pressing n<CR> at the prompt just redisplays the same prompt.

Reproducible: Always
Steps to Reproduce:
1. etc-update
2. select option -3 (auto merge all remaining files)
3. when you see "mv: overwrite `/etc/file'?" press n

Actual Results:  
The same prompt is displayed.

Expected Results:  
The prompt should change to the next file in the list of updates.
Comment 1 Colin JN Breame 2004-04-18 07:24:39 UTC
portage version 2.0.50-r6
Comment 2 Colin JN Breame 2004-04-18 07:26:48 UTC
To fix, change lines 256 (in etc-update), from:

case ${my_input} in
            1) echo "Replacing ${ofile} with ${file}"
               mv ${mv_opts} ${file} ${ofile}
               continue

to:

case ${my_input} in
            1) echo "Replacing ${ofile} with ${file}"
               mv ${mv_opts} ${file} ${ofile}
               my_input=-1
               continue
Comment 3 SpanKY gentoo-dev 2004-04-28 19:40:32 UTC
*** Bug 49343 has been marked as a duplicate of this bug. ***
Comment 4 Redeeman 2004-09-06 03:28:03 UTC
i have same problem ;P
Comment 5 Jason Stubbs (RETIRED) gentoo-dev 2004-10-25 07:25:04 UTC
Confirmed that patch works properly. Added patch to CVS.
Comment 6 Michael Forbes 2004-10-29 17:13:59 UTC
This bug has reappeared in portage 2.0.51-r2.
Comment 7 Jason Stubbs (RETIRED) gentoo-dev 2004-10-29 17:45:36 UTC
This bug is still open and the patch was added to CVS after the release of portage-2.0.51-r2. How could the problem have "reappeared"?
Comment 8 Stewart (Blkdeath) 2004-11-15 16:18:49 UTC
I seem to be experiencing the same 'bug' in portage-2.0.51-r3
Comment 9 Jason Stubbs (RETIRED) gentoo-dev 2005-07-14 05:47:51 UTC
Fixed on or before 2.0.51.22-r1 
Comment 10 Jason Stubbs (RETIRED) gentoo-dev 2005-07-14 06:58:36 UTC
Looking through the batch of bugs, I'm not sure that some of these are 
actually fixed in stable. Others, the requirements have possibly changed after 
the initial fix was committed. 
 
If you think this bug has been closed incorrectly, please reopen or ask that 
it be reopened.