diff --git a/apt_mirror_updater/__init__.py b/apt_mirror_updater/__init__.py index ba21bee..44a42d7 100644 --- a/apt_mirror_updater/__init__.py +++ b/apt_mirror_updater/__init__.py @@ -938,7 +938,7 @@ def find_current_mirror(sources_list): tokens = line.split() if (len(tokens) >= 4 and tokens[0] in ('deb', 'deb-src') and - tokens[1].startswith(('http://', 'ftp://')) and + tokens[1].startswith(('http://', 'https://', 'ftp://', 'mirror://')) and 'main' in tokens[3:]): return tokens[1] raise EnvironmentError("Failed to determine current mirror in apt's package resource list!") diff --git a/apt_mirror_updater/backends/elementary.py b/apt_mirror_updater/backends/elementary.py index d0bbb6b..d5b7c51 100644 --- a/apt_mirror_updater/backends/elementary.py +++ b/apt_mirror_updater/backends/elementary.py @@ -109,6 +109,17 @@ series='hera', version=decimal.Decimal('5.1'), ), + Release( + codename='Odin', + created_date=datetime.date(2021, 8, 10), + distributor_id='elementary', + upstream_distributor_id='ubuntu', + upstream_series='focal', + upstream_version=decimal.Decimal('20.04'), + is_lts=False, + series='odin', + version=decimal.Decimal('6.0'), + ), ] """ List of :class:`.Release` objects corresponding to known elementary OS