mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-08 13:14:17 +02:00
AUR bearhub: fix stale source cache collision (pkgrel=10)
Use tag-specific tarball name bearhub-0.10.7-bearhub.6.tar.gz so makepkg and AUR helpers do not reuse an outdated bearhub-0.10.7.tar.gz from cache. Ignore makepkg artifacts under packaging/aur/.
This commit is contained in:
@@ -1,47 +0,0 @@
|
||||
from abc import ABC, abstractmethod
|
||||
from typing import Iterable, List, Optional, Tuple
|
||||
|
||||
from bauh.api.abstract.handler import ProcessWatcher
|
||||
|
||||
|
||||
class FileDownloader(ABC):
|
||||
|
||||
@abstractmethod
|
||||
def download(self, file_url: str, watcher: Optional[ProcessWatcher], output_path: str, cwd: str, root_password: Optional[str] = None, substatus_prefix: str = None, display_file_size: bool = True, max_threads: int = None, known_size: int = None) -> bool:
|
||||
"""
|
||||
:param file_url:
|
||||
:param watcher:
|
||||
:param output_path: the downloaded file output path. Leave None for the current directory and the same file name
|
||||
:param cwd: current working directory. Leave None if does not matter.
|
||||
:param root_password: (if the output directory is protected)
|
||||
:param substatus_prefix: custom substatus prefix ('prefix downloading xpto')
|
||||
:param display_file_size: if the file size should be displayed on the substatus
|
||||
:param max_threads: maximum number of threads (only available for multi-threaded download)
|
||||
:param known_size: known file size
|
||||
:return: success / failure
|
||||
"""
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def is_multithreaded(self) -> bool:
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def can_work(self) -> bool:
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def get_supported_multithreaded_clients(self) -> Tuple[str, ...]:
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def is_multithreaded_client_available(self, name: str) -> bool:
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def list_available_multithreaded_clients(self) -> Tuple[str, ...]:
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def get_supported_clients(self) -> Tuple[str, ...]:
|
||||
pass
|
||||
Reference in New Issue
Block a user