Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apt_mirror_updater/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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!")
Expand Down
11 changes: 11 additions & 0 deletions apt_mirror_updater/backends/elementary.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down