mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-10 07:44:17 +02:00
[aur] new AUR dependencies checking algorithm
This commit is contained in:
@@ -79,11 +79,11 @@ class AURClient:
|
||||
self.logger.info('{p} is based on {b}. Retrieving {b} .SRCINFO'.format(p=info_name, b=info_base))
|
||||
return self.get_src_info(info_base)
|
||||
|
||||
def extract_required_dependencies(self, pkginfo: dict) -> Set[str]:
|
||||
def extract_required_dependencies(self, srcinfo: dict) -> Set[str]:
|
||||
deps = set()
|
||||
for attr in ('makedepends', 'depends', 'checkdepends'):
|
||||
if pkginfo.get(attr):
|
||||
deps.update([pacman.RE_DEP_OPERATORS.split(dep)[0] for dep in pkginfo[attr]])
|
||||
if srcinfo.get(attr):
|
||||
deps.update([pacman.RE_DEP_OPERATORS.split(dep)[0] for dep in srcinfo[attr]])
|
||||
|
||||
return deps
|
||||
|
||||
|
||||
Reference in New Issue
Block a user