Skip to content

Commit

Permalink
OpenSuse
Browse files Browse the repository at this point in the history
  • Loading branch information
xavivars committed Oct 11, 2023
1 parent bbe362b commit ecedacc
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion fedora/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def get():

return [
download_data(
f'Fedora {version} - Live ISO',
version,
url=d['link'],
os='linux',
get_size=True
Expand Down
28 changes: 28 additions & 0 deletions opensuse/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
from cachetools import cached, TTLCache

from utils import download_data, add_program, get_eol_date

add_program("opensuse", 'opensuse', 'opensuse')


@cached(cache=TTLCache(maxsize=10, ttl=300))
def get():

d = get_eol_date('opensuse')

version = d['cycle']

return [
download_data(
version,
url=f"https://download.opensuse.org/distribution/leap/{version}/iso/openSUSE-Leap-{version}-DVD-x86_64-Media.iso",
os='linux',
get_size=True
),
download_data(
'Tumbleweed',
url=f"https://download.opensuse.org/tumbleweed/iso/openSUSE-Tumbleweed-DVD-x86_64-Current.iso",
os='linux',
get_size=True
)
]

0 comments on commit ecedacc

Please sign in to comment.