summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app-portage/sisyphus/files/sisyphus-drop-datetime.patch26
-rw-r--r--app-portage/sisyphus/sisyphus-1.1804-r2.ebuild (renamed from app-portage/sisyphus/sisyphus-1.1804-r1.ebuild)1
2 files changed, 27 insertions, 0 deletions
diff --git a/app-portage/sisyphus/files/sisyphus-drop-datetime.patch b/app-portage/sisyphus/files/sisyphus-drop-datetime.patch
new file mode 100644
index 00000000..1d9e150b
--- /dev/null
+++ b/app-portage/sisyphus/files/sisyphus-drop-datetime.patch
@@ -0,0 +1,26 @@
+diff --git a/src/backend/libsisyphus.py b/src/backend/libsisyphus.py
+index 59bf310..069d563 100755
+--- a/src/backend/libsisyphus.py
++++ b/src/backend/libsisyphus.py
+@@ -10,7 +10,6 @@
+ import urllib3
+ import io
+
+-from datetime import datetime
+ from dateutil import parser
+
+ redcore_portage_config_path = '/opt/redcore-build'
+@@ -101,11 +100,11 @@ def syncAll():
+
+ reqRmtPkgTs = http.request('HEAD',rmtCsvUrl)
+ rmtPkgTs = int(parser.parse(reqRmtPkgTs.headers['last-modified']).strftime("%s"))
+- lclPkgTs = int(datetime.utcnow().strftime("%s"))
++ lclPkgTs = int(os.path.getctime(rmtPkgCsv))
+
+ reqRmtDscTs = http.request('HEAD',rmtDscUrl)
+ rmtDscTs = int(parser.parse(reqRmtDscTs.headers['last-modified']).strftime("%s"))
+- lclDscTs = int(datetime.utcnow().strftime("%s"))
++ lclDscTs = int(os.path.getctime(rmtDscCsv))
+
+ if rmtPkgTs > lclPkgTs or rmtDscTs > lclDscTs:
+ fetchRemoteDatabaseCSV()
diff --git a/app-portage/sisyphus/sisyphus-1.1804-r1.ebuild b/app-portage/sisyphus/sisyphus-1.1804-r2.ebuild
index 430f448b..b9b1f258 100644
--- a/app-portage/sisyphus/sisyphus-1.1804-r1.ebuild
+++ b/app-portage/sisyphus/sisyphus-1.1804-r2.ebuild
@@ -27,6 +27,7 @@ RDEPEND="${DEPEND}
src_prepare() {
default
eapply "${FILESDIR}"/"${PN}"-use-dateutil.patch
+ eapply "${FILESDIR}"/"${PN}"-drop-datetime.patch
}
src_install() {