diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-04-09 22:03:24 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-04-09 22:03:24 +0100 |
commit | f479187702da8979792b94ea089ba37a4b4e8120 (patch) | |
tree | 42007a5deabc6038e9b0ec02c15c79cb64702b99 | |
parent | 887695b2eee96dd6181c430506b42b0b0007ccc9 (diff) |
app-portage/sisyphus : revision bump
-rw-r--r-- | app-portage/sisyphus/files/sisyphus-drop-datetime.patch | 26 | ||||
-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() { |