From 7791832af820716c329341cae820cf231334d18d Mon Sep 17 00:00:00 2001 From: brent s Date: Thu, 21 Jan 2021 13:12:50 -0500 Subject: [PATCH] fixing some small things --- _base.py | 2 ++ grml.py | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/_base.py b/_base.py index 13f28e0..c35b2ca 100644 --- a/_base.py +++ b/_base.py @@ -69,6 +69,8 @@ class BaseUpdater(object): if self.getRunning(): return(None) self.lock() + self.getCurVer() + self.getNewVer() if self.do_update or \ self.force_update or not \ all((self.old_date, diff --git a/grml.py b/grml.py index a932088..fb4b5de 100755 --- a/grml.py +++ b/grml.py @@ -93,6 +93,7 @@ class Updater(_base.BaseUpdater): if ver_info.get('arch') != self.arch: self.do_update = True self.force_update = True + return(None) if not os.path.isfile(self.dest_iso): self.do_update = True self.force_update = True @@ -101,10 +102,11 @@ class Updater(_base.BaseUpdater): if self.old_hash != realhash: self.do_update = True self.force_update = True + return(None) return(None) 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(): return(None) req = requests.get(self.dl_base, headers = {'User-Agent': 'curl/7.74.0'})