Skip to content

Commit d37de89

Browse files
committed
find: make stage2 in find_package_inner a keyword argument
- Reflect this change in other call to this function
1 parent 009e6c3 commit d37de89

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

acbs/find.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,17 @@ def find_package(name: str, search_path: str, stage2: bool) -> List[ACBSPackageI
5959
p = p.strip()
6060
if not p or p.startswith('#'):
6161
continue
62-
found = find_package_inner(p, search_path, stage2)
62+
found = find_package_inner(p, search_path, stage2=stage2)
6363
if not found:
6464
raise RuntimeError(
6565
f'Package {p} requested in {name} was not found.')
6666
results.extend(found)
6767
print()
6868
return results
69-
return find_package_inner(name, search_path, stage2)
69+
return find_package_inner(name, search_path, stage2=stage2)
7070

7171

72-
def find_package_inner(name: str, search_path: str, stage2: bool, group=False) -> List[ACBSPackageInfo]:
72+
def find_package_inner(name: str, search_path: str, group=False, stage2: bool=False) -> List[ACBSPackageInfo]:
7373
if os.path.isdir(os.path.join(search_path, name)):
7474
flat_path = os.path.join(search_path, name, 'autobuild')
7575
if os.path.isdir(flat_path):

0 commit comments

Comments
 (0)