mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-02-23 05:35:44 -05:00
pkgbuild.discover_pkgbuilds(): warn and skip directories that don't contain a PKGBUILD
This commit is contained in:
parent
5cb747aa26
commit
d3e2224b02
1 changed files with 5 additions and 1 deletions
|
@ -300,7 +300,11 @@ def discover_pkgbuilds(parallel: bool = True, lazy: bool = True) -> dict[str, Pk
|
|||
init_pkgbuilds(interactive=False)
|
||||
for repo in REPOSITORIES:
|
||||
for dir in os.listdir(os.path.join(pkgbuilds_dir, repo)):
|
||||
paths.append(os.path.join(repo, dir))
|
||||
p = os.path.join(repo, dir)
|
||||
if not os.path.exists(os.path.join(pkgbuilds_dir, p, 'PKGBUILD')):
|
||||
logging.warning(f"{p} doesn't include a PKGBUILD file; skipping")
|
||||
continue
|
||||
paths.append(p)
|
||||
|
||||
logging.info("Parsing PKGBUILDs")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue