Merge branch 'master' into staging

# Conflicts:
#	bauh/gems/appimage/controller.py
#	bauh/gems/arch/updates.py
This commit is contained in:
Vinicius Moreira
2022-12-12 07:53:51 -03:00
66 changed files with 249 additions and 245 deletions

View File

@@ -1,14 +1,19 @@
from __future__ import annotations
from abc import ABC, abstractmethod
from enum import Enum
from typing import List, Optional, Iterable
from bauh.api.paths import CACHE_DIR
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from bauh.api.abstract.controller import SoftwareManager
class CustomSoftwareAction:
def __init__(self, i18n_label_key: str, i18n_status_key: str, icon_path: str, manager_method: str,
requires_root: bool, manager: "SoftwareManager" = None,
requires_root: bool, manager: SoftwareManager = None,
backup: bool = False, refresh: bool = True,
i18n_confirm_key: str = None,
requires_internet: bool = False,

View File

@@ -193,7 +193,7 @@ class TextComponent(ViewComponent):
class TwoStateButtonComponent(ViewComponent):
def __init__(self, label: str, tooltip: str = None, state: bool = False, id_: str = None):
def __init__(self, label: str, tooltip: str = None, state: bool = False, id_: str = None):
super(TwoStateButtonComponent, self).__init__(id_=id_)
self.label = label
self.tooltip = tooltip

View File

@@ -3,4 +3,3 @@ from typing import Optional
class NoInternetException(Exception):
pass

View File

@@ -96,7 +96,7 @@ class HttpClient:
if size:
try:
return int(size)
except:
except Exception:
pass
def get_content_length(self, url: str, session: bool = True) -> Optional[str]: