| Summary: | layman-1.2.3 removes overlay when network down | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | John (EBo) David <ebo> |
| Component: | Current packages | Assignee: | 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: | --- | |
*** This bug has been marked as a duplicate of bug 304547 *** |
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.