Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 9642 - emerge-webrsync fails when the latest portage three snapshot is of zero size.
Summary: emerge-webrsync fails when the latest portage three snapshot is of zero size.
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Martin Holzer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-25 03:39 UTC by Krist van Besien
Modified: 2011-10-30 22:19 UTC (History)
2 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 Krist van Besien 2002-10-25 03:39:18 UTC
Today (oct 25 2002) the latest protage three snapshot was for some reason of
zero size. This resulted in emerge-webrsync not functioning correclty.

Looking at the script I saw that emerge-webrsync downloads the latest snapshot,
and then tries to unpack it. I added a small sanity check and this caused the
script to fetch the snapshot previous to the last when the size is zero.

See the following diff:
*** emerge-webrsync     Fri Oct 25 10:28:32 2002
--- emerge-webrsync.old Fri Oct 25 10:17:24 2002
***************
*** 58,64 ****
                url="${i}/snapshots/$file"
                rm -f $file

!               if (wget $wgetops $url) && [ -s $file ] ; then
                        sync_local
                        exit 0
                fi
--- 58,64 ----
                url="${i}/snapshots/$file"
                rm -f $file

!               if (wget $wgetops $url) ; then
                        sync_local
                        exit 0
                fi
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2002-11-11 08:43:31 UTC
i'll do this for you

Comment 2 Martin Holzer (RETIRED) gentoo-dev 2002-11-11 11:29:32 UTC
fixed in cvs.