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

Bug 80148

Summary: [PATCH] Add last successful snapshot date support to emerge-webrsync
Product: Portage Development Reporter: James Roberts-Thomson <james.roberts-thomson>
Component: CoreAssignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch to emerge-webrsymc, which adds last successful date support etc
Corrected patch
Third attempt to generate a patch to emerge-webrsync

Description James Roberts-Thomson 2005-01-30 17:02:57 UTC
The recent portage snapshot issues (Bug #79455) showed a weakness in emerge-webrsync, in that it will fetch and sync against a previously-installed snapshot, as it doesn't track the last "successful" snapshot.

I have made some changes to the script to do this (and also slightly improved help, and fixing of another couple of issues that annoy me), and submit this patch for inclusion in the original source.

Reproducible: Always
Steps to Reproduce:




Expected Results:  
Portage should not try to download a snapshot it has already used.
Comment 1 James Roberts-Thomson 2005-01-30 17:06:22 UTC
Created attachment 50009 [details, diff]
Patch to emerge-webrsymc, which adds last successful date support etc

This patch will add "last successful date" support, by recording the date of
the last successful snapshot download into /var/lib/portage/webrsync-date.  The
patch also adds help (-h) support, and fixes one or two minor things that irk
me about the current script.
Comment 2 James Roberts-Thomson 2005-01-30 17:36:20 UTC
Created attachment 50025 [details, diff]
Corrected patch

Whoops, the last version of the patch missed the line which updates the stored
date - now corrected.
Comment 3 James Roberts-Thomson 2005-01-31 16:03:17 UTC
Created attachment 50086 [details, diff]
Third attempt to generate a patch to emerge-webrsync

Brain obviously asleep the previous day - this patch should work.
Comment 4 Jason Stubbs (RETIRED) gentoo-dev 2005-07-28 07:24:45 UTC
Putting a hold on feature requests for portage as they are drowning out the 
bugs. Most of these features should be available in the next major version of 
portage. But for the time being, they are just drowning out the major bugs and 
delaying the next version's progress. 
 
Any bugs that contain patches and any bugs for etc-update or dispatch-conf can 
be reopened. Sorry, I'm just not good enough with bugzilla. ;) 
Comment 5 Marius Mauch (RETIRED) gentoo-dev 2007-01-11 14:31:13 UTC
Reopening for consideration.
Comment 6 James Roberts-Thomson 2007-01-11 19:52:45 UTC
In the time since this bug was initially raised, I've also made some other minor changes to my own copy of "emerge-webrsync"; the main one is the use of a tmpfs filesystem to unpack the downloaded tarball into (since I have plenty of RAM and this prevents disk IO contention).

Would you like me to update the attached patch with a newly generated one with these features as well?