Skip to content

Commit

Permalink
Temporary ubuntu version parse fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LyzardKing committed Apr 27, 2021
1 parent 8e64143 commit 7bb3a19
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/small_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
python-version: 3.8
- name: Install dependencies
run: |
sudo apt install gir1.2-gtk-3.0 libgirepository1.0-dev libapt-pkg-dev fakeroot
sudo apt install gir1.2-gtk-3.0 libgirepository1.0-dev python3-apt fakeroot
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test with pytest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/style_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
python-version: 3.8
- name: Install dependencies
run: |
sudo apt install gir1.2-gtk-3.0 libgirepository1.0-dev libapt-pkg-dev fakeroot
sudo apt install gir1.2-gtk-3.0 libgirepository1.0-dev python3-apt fakeroot
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test with pytest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/url_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
python-version: 3.8
- name: Install dependencies
run: |
sudo apt install gir1.2-gtk-3.0 libgirepository1.0-dev libapt-pkg-dev fakeroot
sudo apt install gir1.2-gtk-3.0 libgirepository1.0-dev python3-apt fakeroot
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test with pytest
Expand Down
8 changes: 4 additions & 4 deletions umake/frameworks/ide.py
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ def __init__(self, **kwargs):
super().__init__(name="RStudio", description=_("RStudio code editor"),
only_on_archs=['amd64'],
download_page="https://www.rstudio.com/products/rstudio/download/",
packages_requirements=["libjpeg62", "libedit2", "libssl1.0.0 | libssl1.1", "libclang-dev"],
packages_requirements=["libjpeg62", "libedit2", "libssl1.0.0 | libssl1.0.3 | libssl1.1", "libclang-dev"],
desktop_filename="rstudio.desktop",
required_files_path=["bin/rstudio"],
dir_to_decompress_in_tarball="rstudio-*",
Expand All @@ -858,10 +858,10 @@ def parse_download_link(self, line, in_download):
"""Parse RStudio download links"""
url = None
checksum = None
if get_current_distro_version().split('.')[0] < "18" or \
get_current_distro_version(distro_name="debian") < "9":
if int(get_current_distro_version().split('.')[0]) < 18 or \
int(get_current_distro_version(distro_name="debian").split('.')[0]) < 9:
ubuntu_version = 'xenial'
elif get_current_distro_version(distro_name="debian") == "9":
elif int(get_current_distro_version(distro_name="debian").split('.')[0]) == 9:
ubuntu_version = "debian9"
else:
ubuntu_version = 'bionic'
Expand Down

0 comments on commit 7bb3a19

Please sign in to comment.