From 14958420f5ef90ae265dd89889f0bc2009f1618d Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 1 Apr 2019 20:39:20 +0100 Subject: this part became unreliable, so kick it out --- src/backend/libsisyphus.py | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) (limited to 'src/backend') 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(): -- cgit v1.2.3