Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 33382 - dispatch-conf does not check if rcs is installed and wipes /etc/ config files when it isn't
Summary: dispatch-conf does not check if rcs is installed and wipes /etc/ config files...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
: 62135 (view as bug list)
Depends on: 62135
Blocks:
  Show dependency tree
 
Reported: 2003-11-13 03:45 UTC by Marko Daniel
Modified: 2004-10-22 08:47 UTC (History)
4 users (show)

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


Attachments
bug fix (dispatch-conf.patch,983 bytes, patch)
2004-08-24 18:41 UTC, Matthew Schulkind
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marko Daniel 2003-11-13 03:45:06 UTC
Tried to use dispatch-conf instead of etc-update, edited
/etc/dispatch-conf.conf, said "yes" to using rcs (oops), created
/etc/config-archive.
Then:
#dispatch-conf
sh: line 1: ci: command not found
sh: line 1: co: command not found
sh: line 1: rcsmerge: command not found
sh: line 1: rcs: command not found
sh: line 1: ci: command not found
sh: line 1: ci: command not found
sh: line 1: co: command not found
sh: line 1: rcsmerge: command not found
sh: line 1: rcs: command not found
sh: line 1: ci: command not found
sh: line 1: ci: command not found
sh: line 1: co: command not found
sh: line 1: rcsmerge: command not found
sh: line 1: rcs: command not found
sh: line 1: ci: command not found
sh: line 1: ci: command not found
sh: line 1: co: command not found
sh: line 1: rcsmerge: command not found
sh: line 1: rcs: command not found
sh: line 1: ci: command not found



Reproducible: Always
Steps to Reproduce:
1.
2.
3.

Actual Results:  
All config files in /etc/ that should have been updated are instead "blanked", 0
bytes long. 
The configs are, however, in /etc/config-archive/etc/*


Expected Results:  
1. Check if rcs is installed.
2. Fail with error "Rcs not installed."
Comment 1 Roman Gaufman 2004-06-07 16:32:30 UTC
confirmed, horrible, horrible bug!
Comment 2 Rodrigo Severo 2004-08-24 08:06:50 UTC
Have just seem this happening with a coleague.

Please let me repeat: it's a horrible, horrible bug.

Any change of actually fixing it?
Comment 3 Matthew Schulkind 2004-08-24 12:52:18 UTC
I'll take this bug. Hopefully I can have a fix for it later tonight.
Comment 4 Matthew Schulkind 2004-08-24 18:41:07 UTC
Created attachment 38133 [details, diff]
bug fix

I have attached a patch which should fix this problem by exiting with an error
if rcs is not found around.

Please commit to cvs as this is a pretty bad bug.
Comment 5 Nicholas Jones (RETIRED) gentoo-dev 2004-09-08 21:23:52 UTC
portage-2.0.51_pre21
Comment 6 Nicholas Jones (RETIRED) gentoo-dev 2004-09-08 21:24:08 UTC
*** Bug 62135 has been marked as a duplicate of this bug. ***
Comment 7 Nicholas Jones (RETIRED) gentoo-dev 2004-10-22 08:47:50 UTC
Bug has been fixed and released in stable portages on or before 2.0.51-r2