Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 151449 Details for
Bug 219837
emerge-webrsync strange issues
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
adjust date calculations
webrsync_date.patch (text/plain), 1.21 KB, created by
Zac Medico
on 2008-04-30 18:31:50 UTC
(
hide
)
Description:
adjust date calculations
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2008-04-30 18:31:50 UTC
Size:
1.21 KB
patch
obsolete
>Index: bin/emerge-webrsync >=================================================================== >--- bin/emerge-webrsync (revision 10047) >+++ bin/emerge-webrsync (revision 10048) >@@ -308,11 +308,15 @@ > } > > do_latest_snapshot() { >- local attempts=-1 >+ local attempts=0 > local r=1 > > vecho "Fetching most recent snapshot ..." > >+ # The snapshot for a given day is generated at 01:45 UTC on the following >+ # day, so the current day's snapshot (going by UTC time) hasn't been >+ # generated yet. Therefore, always start by looking for the previous day's >+ # snapshot (for attempts=1, subtract 1 day from the current UTC time). > while (( ${attempts} < 40 )) ; do > local day > local month >@@ -326,9 +330,9 @@ > day=$(get_date_part ${utc_attempt} "%d") > month=$(get_date_part ${utc_attempt} "%m") > year=$(get_date_part ${utc_attempt} "%Y") >- utc_midnight=$(get_date_part $(expr ${utc_attempt} - ${utc_attempt} % 86400) "%s") >+ utc_midnight=$(expr ${utc_attempt} - ${utc_attempt} % 86400) > >- if [ ${utc_midnight} -lt $(($(get_portage_timestamp)-86400)) ]; then >+ if [ ${utc_midnight} -lt $(get_portage_timestamp) ]; then > wecho "portage content is newer than available snapshots (use --revert option to overide)" > r=0 > break
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 219837
: 151449