grml cleaned up, testing

This commit is contained in:
2021-01-21 11:34:06 -05:00
parent 7c8f25ea03
commit 0e8d460565
6 changed files with 300 additions and 25 deletions

View File

@@ -30,7 +30,7 @@ class Updater(_base.BaseUpdater):
_allowed_hashes = ('md5', 'sha1')
_allowed_arches = ('x86_64', )
_datever_fmt = '%Y.%m.%d'
_arch = 'x86_64' # Arch Linux proper only offers x86_64.
arch = 'x86_64' # Arch Linux proper only offers x86_64.
_iso_dir = 'iso/latest'
_iso_fname = 'archlinux-{ver}-{arch}.iso'
_iso_file = os.path.join(_iso_dir, _iso_fname)
@@ -130,7 +130,7 @@ class Updater(_base.BaseUpdater):
self.new_hash = self.old_hash
self.new_ver = self.old_ver
self.new_date = self.old_date
# if ver_info.get('arch') != self._arch:
# if ver_info.get('arch') != self.arch:
# self.do_update = True
# self.force_update = True
try:
@@ -186,7 +186,7 @@ class Updater(_base.BaseUpdater):
self.rel_notes_url = notes
datever = self.new_ver.strftime(self._datever_fmt)
self.iso_url = os.path.join(self.mirror_base,
self._iso_file.lstrip('/')).format(ver = datever, arch = self._arch)
self._iso_file.lstrip('/')).format(ver = datever, arch = self.arch)
hash_url = os.path.join(self.mirror_base,
self._iso_dir,
'{0}sums.txt'.format(self.hash_type))