Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 154209 - app-portage/emerge-delta-webrsync-3.5.1-r2 should not automatically sync to the past
Summary: app-portage/emerge-delta-webrsync-3.5.1-r2 should not automatically sync to t...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
Depends on:
Reported: 2006-11-05 23:17 UTC by Petteri Räty (RETIRED)
Modified: 2012-08-19 00:32 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Petteri Räty (RETIRED) gentoo-dev 2006-11-05 23:17:29 UTC
Now emerge-delta-webrsync happily syncs to an earlier state of the tree if for example the following happens:

rj baselayout # emerge-delta-webrsync
Looking for available base versions for a delta
fetching patches
           => `/usr/portage/distfiles/snapshot-20061029-20061029.patch.bz2.md5sum'
Connecting to||:8080... connected.
Proxy request sent, awaiting response... 404 Not Found
09:26:19 ERROR 404: Not Found.

failed fetching snapshot-20061029-20061029.patch.bz2.md5sum
no patches found? up to date?
syncing with existing file
Syncing local tree...
apparently you have tarsync installed.  using it.
scanning tarball...

emerge-delta-webrsync should check the timestamps of the Portage tree and not sync the tree to an earlier state.
Comment 1 Zac Medico gentoo-dev 2012-08-19 00:32:49 UTC
There's already an emerge-delta-webrsync -u option will make it skip the sync in this case.

Changing the default seems reasonable though. We can borrow the get_snapshot_timestamp() function from emerge-webrsync, which grabs the timestamp from inside the tar file, and use that for a sanity check.