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:
Sebastian Palencsar
2026-06-27 10:02:45 +02:00
parent c56b8a2473
commit da377aecdc
198 changed files with 4543 additions and 4644 deletions

View File

@@ -1,38 +0,0 @@
import re
import shutil
from typing import Optional, Generator
from bauh import __app_name__
from bauh.commons.system import SimpleProcess, new_root_subprocess
RE_SNAPSHOTS = re.compile(r'\d+\s+>\s+([\w\-_]+)\s+.+<{}>'.format(__app_name__))
def is_available() -> bool:
return bool(shutil.which('timeshift'))
def delete_all_snapshots(root_password: Optional[str]) -> SimpleProcess:
return SimpleProcess(('timeshift', '--delete-all', '--scripted'), root_password=root_password)
def delete(snapshot_name: str, root_password: Optional[str]) -> SimpleProcess:
return SimpleProcess(('timeshift', '--delete', '--snapshot', snapshot_name),
shell=True, root_password=root_password)
def create_snapshot(root_password: Optional[str], mode: str) -> SimpleProcess:
return SimpleProcess(('timeshift', '--create', '--scripted', f'--{mode}', '--comments', f'<{__app_name__}>'),
root_password=root_password)
def read_created_snapshots(root_password: Optional[str]) -> Generator[str, None, None]:
proc = new_root_subprocess(cmd=('timeshift', '--list'), root_password=root_password, shell=True)
proc.wait()
if proc.returncode == 0:
output = '\n'.join((o.decode() for o in proc.stdout))
if output:
for name in RE_SNAPSHOTS.findall(output):
yield name