emerge-webrsync used to look through the mirrors defined in /etc/make.conf to find the most recent snapshot starting from the current date and then adjusting the date one day back and repeating the searches until a valid snaphot was found. As of September 16, 2004 this behavior has changed. Now emerge-webrsync will fail if no current day snapshot has been found. No attempts to search for older snapshots are made. Reproducible: Always Steps to Reproduce: 1. # emerge-webrsync -v 2. 3. Actual Results: An attempt to find a current date snapshot was made. The script looked through the mirrors correctly but no snapshot of September 17, 2004 was found. At this point the program printed an error message saying that corruption could not be checked because there was no md5sum file available and exited. Expected Results: The program should have attempted to search for a previous day snapshot that is for one of September 16, 2004. ovewriting the file: /usr/lib/portage/bin/emerge-webrsync with an earlier version (I used one of September 11) fixes the problem.
I can confirm this behaviour, too. I'm trying to get portage-20040921.tar.bz2, which is not there, because I'm in Europe and thus ahead of US time. I would suggest to download the md5sum file _after_ any portage snapshot has been succesfully fetched, not before.
Created attachment 40590 [details] emerge-wersync with Bug #64375 fix I downloaded a new version of Portage today and the bug is still there so I decided to take a look at it and fix it myself. Actually the error is trivial. Line #94 of the emerge-webrsync should read: if (($got_md5 == 0 && $attempts == 39)); then rather then: if (($got_md5 == 0)); then
Created attachment 40591 [details] fixed version Attached is a modified version of the emerge-webrsync from portage-2.0.51_rc6 I have cleaned it up, corrected the logic and tested it with diff scenarios. Please check and see if it is usable.
Sorry but emerge-webrsync version from the attachment #40591 [details] and that from portage-2.0.51_rc6 still behave as described in the original bug report.
This patch will be in 2.0.51_rc7. Please do not submit entire files to bugzilla for portage development. It is a lot more work for us and our time is limited. http://zarquon.twobit.net/gentoo/portage/emerge-webrsync-2.0.51_rc7.diff fenchurch ~ # emerge-webrsync Fetching most recent snapshot Attempting to fetch file dated: 20040929 --- No md5sum present on the mirror. (Not yet available.) Attempting to fetch file dated: 20040928 portage-20040928.tar.bz2: OK Syncing local tree...
I have upgraded to portage-2.0.51_rc7 and emerge-webrsync works OK again. I am not shure who should change the status to fixed but as I was the first person to report it I think I should...
Let the devs close it. That way we don't have to deal with duplicates. Some people complain about bugs being fixed and closed, but not stable. We leave them open with an InCVS keyword set.
Bug has been fixed and released in stable portages on or before 2.0.51-r2