summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-04-01 20:39:20 +0100
committerV3n3RiX <venerix@redcorelinux.org>2019-04-01 20:39:20 +0100
commit14958420f5ef90ae265dd89889f0bc2009f1618d (patch)
tree95ce800c7491f2a2133c31e86776aa72d76a91d7
parent56de97861c73c2c054c9d8560188d7b6c5b330d4 (diff)
this part became unreliable, so kick it out
-rw-r--r--src/backend/libsisyphus.py24
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():