Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 61398 - emerge-webrsync deletes entire portage tree on failed download
Summary: emerge-webrsync deletes entire portage tree on failed download
Status: RESOLVED DUPLICATE of bug 25499
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-23 10:06 UTC by Matthew Schulkind
Modified: 2005-07-17 13:06 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 Matthew Schulkind 2004-08-23 10:06:56 UTC
If emerge-webrsync gets a corrupt download somehow, then it decides to delete the entire portage tree since no files exist in what it is rsyncing to.

Here's some sample output:

# emerge-webrsync 
Fetching most recent snapshot
Syncing local tree...
bzip2: (stdin) is not a bzip2 file.
tar: Child returned status 2
tar: Error exit delayed from previous errors
chown: cannot access `portage': No such file or directory
/usr/sbin/emerge-webrsync: line 37: cd: portage: No such file or directory
building file list ... 
1 file to consider
./
deleting xfce-extra/xfwm4-themes/xfwm4-themes-4.0.6.ebuild
deleting xfce-extra/xfwm4-themes/xfwm4-themes-4.0.5.ebuild
deleting xfce-extra/xfwm4-themes/xfwm4-themes-4.0.4.ebuild

<snip the other 10000 files being deleted>

Reproducible: Always
Steps to Reproduce:
Comment 1 Andreas Kobara 2004-09-22 23:31:59 UTC
Similar to Bug #25499 ?
Comment 2 Brian Harring (RETIRED) gentoo-dev 2005-02-28 00:50:44 UTC
Dupe of 25499.  Re: webrsync deleting your local tree, only possible when upstream (gentoo servers) sign/md5 an incomplete snapshot.
No way to fix that clientside though.

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