fixing some small things
This commit is contained in:
parent
e8a75a42df
commit
7791832af8
2
_base.py
2
_base.py
@ -69,6 +69,8 @@ class BaseUpdater(object):
|
|||||||
if self.getRunning():
|
if self.getRunning():
|
||||||
return(None)
|
return(None)
|
||||||
self.lock()
|
self.lock()
|
||||||
|
self.getCurVer()
|
||||||
|
self.getNewVer()
|
||||||
if self.do_update or \
|
if self.do_update or \
|
||||||
self.force_update or not \
|
self.force_update or not \
|
||||||
all((self.old_date,
|
all((self.old_date,
|
||||||
|
4
grml.py
4
grml.py
@ -93,6 +93,7 @@ class Updater(_base.BaseUpdater):
|
|||||||
if ver_info.get('arch') != self.arch:
|
if ver_info.get('arch') != self.arch:
|
||||||
self.do_update = True
|
self.do_update = True
|
||||||
self.force_update = True
|
self.force_update = True
|
||||||
|
return(None)
|
||||||
if not os.path.isfile(self.dest_iso):
|
if not os.path.isfile(self.dest_iso):
|
||||||
self.do_update = True
|
self.do_update = True
|
||||||
self.force_update = True
|
self.force_update = True
|
||||||
@ -102,9 +103,10 @@ class Updater(_base.BaseUpdater):
|
|||||||
self.do_update = True
|
self.do_update = True
|
||||||
self.force_update = True
|
self.force_update = True
|
||||||
return(None)
|
return(None)
|
||||||
|
return(None)
|
||||||
|
|
||||||
def getNewVer(self):
|
def getNewVer(self):
|
||||||
# We could do this a lot more reliably if
|
# We could do this a lot more reliably if the mirrors all had the same HTML.
|
||||||
if self.getRunning():
|
if self.getRunning():
|
||||||
return(None)
|
return(None)
|
||||||
req = requests.get(self.dl_base, headers = {'User-Agent': 'curl/7.74.0'})
|
req = requests.get(self.dl_base, headers = {'User-Agent': 'curl/7.74.0'})
|
||||||
|
Reference in New Issue
Block a user