Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 108691 Details for
Bug 164532
emerge-webrsync requires >=coreutils-6.4 for date command
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
test success of the -r option to distinguish between gnu and bsd date
date.patch (text/plain), 1.05 KB, created by
Zac Medico
on 2007-01-30 22:50:38 UTC
(
hide
)
Description:
test success of the -r option to distinguish between gnu and bsd date
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2007-01-30 22:50:38 UTC
Size:
1.05 KB
patch
obsolete
>Index: bin/emerge-webrsync >=================================================================== >--- bin/emerge-webrsync (revision 5839) >+++ bin/emerge-webrsync (revision 5840) >@@ -7,7 +7,7 @@ > > eval $(/usr/lib/portage/bin/portageq envvar -v FEATURES FETCHCOMMAND \ > GENTOO_MIRRORS PORTAGE_INST_UID PORTAGE_INST_GID PORTAGE_NICENESS \ >- PORTAGE_TMPDIR PORTDIR USERLAND) >+ PORTAGE_TMPDIR PORTDIR) > DISTDIR="${PORTAGE_TMPDIR}/emerge-webrsync" > > # If PORTAGE_NICENESS is overriden via the env then it will >@@ -94,7 +94,9 @@ > # snapshot (for attempts=1, subtract 1 day from the current UTC time). > daysbefore=$(expr $(date -u +"%s") - 86400 \* ${attempts}) > DATE_ARGS="-d @${daysbefore}" >- [ "${USERLAND}" != "GNU" ] && DATE_ARGS="-r ${daysbefore}" >+ # ${USERLAND} is unreliable since the portage tree might be empty, so test >+ # success of the -r option to distinguish between gnu and bsd date. >+ date -r ${daysbefore} >&/dev/null && DATE_ARGS="-r ${daysbefore}" > day=$(date ${DATE_ARGS} -u +"%d") > month=$(date ${DATE_ARGS} -u +"%m") > year=$(date ${DATE_ARGS} -u +"%Y")
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 164532
: 108691