Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 167130 - Selecting interactive merging in etc-update stops rm warning in *future* config files
Summary: Selecting interactive merging in etc-update stops rm warning in *future* conf...
Status: RESOLVED NEEDINFO
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - External Interaction (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-15 22:52 UTC by Allan Gottlieb
Modified: 2007-06-05 18:14 UTC (History)
0 users

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 Allan Gottlieb 2007-02-15 22:52:06 UTC
While using etc-update, I selected option for interactive merge of
a config file (option 3).  This worked quite well

When the same invocation of etc-update progressed to subsequent configs,
I did not need interactivity so selected option 1, replace file with update.
This "worked" but did not prompt me about removing the ._ file.  It simply
removed it.  Please note that this is *not* the config for which I did an
interactive merge

Reproducible: Always

Steps to Reproduce:
1. Run etc-update with >1 pending update
2. Use interactive merge (option 3) for first update
3. Use non-interactive merge (option 1) for subsequent update

Actual Results:  
As mentioned in description above

Expected Results:  
Subsequent, non-interactive, merges should give the warning (like rm -i) of
before removing the config file.
Comment 1 Zac Medico gentoo-dev 2007-02-27 06:38:11 UTC
I don't see how the exact sequence of events that you describe could happen.  Here is the code for option 1:

case ${my_input} in
	1) echo "Replacing ${ofile} with ${mfile}"
		chmod --reference=${ofile} ${mfile}
		mv ${mv_opts} ${mfile} ${ofile}
		rm ${rm_opts} ${file}
		return 255 

The values of mv_opts and rm_opts are never modified while etc-update is running unless, unless the user selects -5 or -7 from the main menu.