Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 304549

Summary: layman-1.2.3 removes overlay when network down
Product: Gentoo Linux Reporter: John (EBo) David <ebo>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description John (EBo) David 2010-02-11 13:02:58 UTC
For the last 6 months I have had problems with layman deleting an overlay repository after a sync operation.  I have finally figured out how to consistently replicate the error.

Reproducible: Always

Steps to Reproduce:
1. emerge layman
2. add sunrise and powerman to the overlay (ie. layman -a powerman)
3. synchronize layman (ie layman -S)
4. check the overlay directory (ls /usr/local/portage/layman/)
      notice that sunrise and powerman are there
5. now disconnect the ethernet and resynchronize (yes this will fail, 
      but it also DELETES the powerman overlay)
6. plug the ehternet back in and try to resynchronize

Actual Results:  
now it returns:

* Failed to sync overlay "powerman".
* Error was: Directory /usr/local/portage/layman/powerman does not exist. Cannot remove the overlay!


Expected Results:  
to synchronize the powerman overlay

The powerman overlay is distributed as a tar file.  All the other overlays on my system are cvs, svn, and git.  It appears that layman inadvertantly removes the directory whenever it trys to synchronize the overlay.

A quick workaround for this is to simply create the missing directory (ie mkdir /usr/local/portage/layman/powerman) so that when you resynchronize layman it has the head directory as expected.  In this case it simply extracts the contents of the tar file into the overlay.
Comment 1 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2010-02-11 15:41:35 UTC

*** This bug has been marked as a duplicate of bug 304547 ***