Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 396463 - sys-apps/portage-2.1.10.41: emerge-webrsync gets wrong local timestamp
Summary: sys-apps/portage-2.1.10.41: emerge-webrsync gets wrong local timestamp
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-29 22:56 UTC by Johannes Buchner
Modified: 2011-12-30 17:57 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 Johannes Buchner 2011-12-29 22:56:02 UTC
The timestamp returned by date +%s isn't the same emerge-webrsync calculates.

myhost ~ # date; date +%s; emerge-webrsync
Thu Dec 29 23:51:22 CET 2011
1325199082
Fetching most recent snapshot ...
 * Latest snapshot date: 20111228
 * 
 * Approximate snapshot timestamp: 1325123100
 *        Current local timestamp: 1325118901
 * 
 * The current local timestamp is possibly identical to the
 * timestamp of the latest snapshot. In order to force sync, use
 * the --revert option or remove the timestamp file located at
 * '/mnt/portage/metadata/timestamp.x'.


Subsequently, no update is performed.

Reproducible: Always
Comment 1 Zac Medico gentoo-dev 2011-12-30 03:57:01 UTC
It's not supposed to use your system time. It's supposed to compare the times from the timestamp.x files contained in the trees. It doesn't sync if the timestamps are less than 1 day apart. Your timestamps are less than 1 day (86400 seconds) apart:

   1325123100 - 1325118901 = 4199
Comment 2 Johannes Buchner 2011-12-30 17:57:53 UTC
I see -- thanks.