diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-04-01 20:39:20 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-04-01 20:39:20 +0100 |
commit | 14958420f5ef90ae265dd89889f0bc2009f1618d (patch) | |
tree | 95ce800c7491f2a2133c31e86776aa72d76a91d7 | |
parent | 56de97861c73c2c054c9d8560188d7b6c5b330d4 (diff) |
this part became unreliable, so kick it out
-rw-r--r-- | src/backend/libsisyphus.py | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/src/backend/libsisyphus.py b/src/backend/libsisyphus.py index b939432..d5eece3 100644 --- a/src/backend/libsisyphus.py +++ b/src/backend/libsisyphus.py @@ -10,7 +10,6 @@ import sys import urllib3 import io import wget -from dateutil import parser gentooEbuildDir = '/usr/ports/gentoo' redcoreEbuildDir = '/usr/ports/redcore' @@ -185,26 +184,9 @@ def syncPortageCfg(): @animation.wait('syncing remote database') def syncAll(): checkRoot() - - remotePkgCsv,remoteDescCsv = getCsvUrl() - http = urllib3.PoolManager() - - reqRemotePkgsTS = http.request('HEAD', remotePkgCsv) - remotePkgsTS = int(parser.parse(reqRemotePkgsTS.headers['last-modified']).strftime("%s")) - localPkgsTS = int(os.path.getctime(remotePkgsDB)) - - reqRemoteDscsTS = http.request('HEAD', remoteDescCsv) - remoteDscsTS = int(parser.parse(reqRemoteDscsTS.headers['last-modified']).strftime("%s")) - localDscsTS = int(os.path.getctime(remoteDscsDB)) - - if remotePkgsTS < localPkgsTS: - pass - elif remoteDscsTS < localDscsTS: - pass - else: - syncPortageTree() - syncPortageCfg() - syncRemoteDatabase() + syncPortageTree() + syncPortageCfg() + syncRemoteDatabase() @animation.wait('syncing local database') def startSyncSPM(): |