mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-08 14:24:15 +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,26 +0,0 @@
|
||||
import re
|
||||
from typing import Set
|
||||
|
||||
RE_PKGBUILD_OPTDEPS = re.compile(r"optdepends = (.+)")
|
||||
RE_PKGBUILD_OPTDEPS_x86_64 = re.compile(r"optdepends_x86_64 = (.+)")
|
||||
RE_PKGBUILD_OPTDEPS_i686 = re.compile(r"optdepends_i686 = (.+)")
|
||||
|
||||
|
||||
def read_optdeps_as_dict(srcinfo: str, x86_64: bool) -> dict:
|
||||
res = {}
|
||||
for optdep in read_optdeps(srcinfo, x86_64):
|
||||
split_dep = optdep.split(':')
|
||||
res[split_dep[0].strip()] = split_dep[1].strip() if len(split_dep) > 1 else None
|
||||
|
||||
return res
|
||||
|
||||
|
||||
def read_optdeps(srcinfo: str, x86_64: bool) -> Set[str]:
|
||||
optdeps = set(RE_PKGBUILD_OPTDEPS.findall(srcinfo))
|
||||
|
||||
if x86_64:
|
||||
optdeps.update(set(RE_PKGBUILD_OPTDEPS_x86_64.findall(srcinfo)))
|
||||
else:
|
||||
optdeps.update(set(RE_PKGBUILD_OPTDEPS_i686.findall(srcinfo)))
|
||||
|
||||
return optdeps
|
||||
Reference in New Issue
Block a user