grml cleaned up, testing
This commit is contained in:
6
arch.py
6
arch.py
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user