summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-04-09 22:00:28 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-04-09 22:00:28 +0100
commitbbe0727f4d9af365f69237bde6f34b75b3e0a2a7 (patch)
tree1929baaae68dbc2e5cf909074afe9c439dae22ba /src
parent2f8d2d0f382802815a947230c905abe82a9dc9db (diff)
drop datetime completely
Diffstat (limited to 'src')
-rwxr-xr-xsrc/backend/libsisyphus.py5
1 files changed, 2 insertions, 3 deletions
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 sys
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()