Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 17403 - etc-update should not automerge for non-existent files
Summary: etc-update should not automerge for non-existent files
Status: RESOLVED WORKSFORME
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High minor
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on: 11763 93874
Blocks:
  Show dependency tree
 
Reported: 2003-03-12 16:20 UTC by Rajiv Aaron Manglani (RETIRED)
Modified: 2011-10-30 22:17 UTC (History)
3 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 Rajiv Aaron Manglani (RETIRED) gentoo-dev 2003-03-12 16:20:27 UTC
i removed /etc/csh.cshrc and /etc/csh.login. aparently there were some ._cfg...
files still hanging around. i ran etc-update and saw this:

fireball root # etc-update 
Scanning Configuration files...
diff: /etc/csh.cshrc: No such file or directory
Automerging trivial changes in: csh.cshrc
diff: /etc/csh.login: No such file or directory
Automerging trivial changes in: csh.login

and of course the files re-appeared.

etc-update should not automerge files which have been removed.
Comment 1 Frédéric Point 2004-09-18 05:33:21 UTC
I think this is a bug in diff (or even in bash)

Diff put extra char on prompt

diff -Bbua /etc/sound/events/gnobots2.soundlist /etc/sound/events/._cfg0000_gnobots2.soundlist

The end of the output is weird :
----------------------
+description[uk]=
Comment 2 Frédéric Point 2004-09-18 05:33:21 UTC
I think this is a bug in diff (or even in bash)

Diff put extra char on prompt

diff -Bbua /etc/sound/events/gnobots2.soundlist /etc/sound/events/._cfg0000_gnobots2.soundlist

The end of the output is weird :
----------------------
+description[uk]=Ð ÑÐ²ÐµÐ½Ñ Ð·Ð°Ð²ÐµÑÑено
 description[vi]=Mức hoà n thà nh
 description[zh_CN]=æ¬å±å®æ
 description[zh_TW]=éé
itchy-scratchy root # 1;2c
----------------------

My diffutils vervion is sys-apps/diffutils-2.8.4-r4
Comment 3 Stian Skjelstad 2005-06-27 06:22:00 UTC
Would it not be more correct to

rm /etc/csh.cshrc && touch /etc/csh.cshrc
rm /etc/csh.login && touch /etc/csh.login

This way, the files aren't missing, and thereby don't get automerged
Comment 4 Marius Mauch (RETIRED) gentoo-dev 2006-07-19 03:39:42 UTC
Can't reproduce this.