pmb.aportgen: Add default value to fork_alpine parameter

No need to specify this when fork_alpine has nothing to do with the
usage.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/-/merge_requests/2610
This commit is contained in:
Luca Weiss 2025-05-23 11:50:14 +02:00 committed by Newbyte
parent ed57b3dac3
commit 606eb669fc
No known key found for this signature in database
GPG key ID: ACD854892B38D898
2 changed files with 5 additions and 3 deletions

View file

@ -61,7 +61,9 @@ def properties(pkgname: str) -> tuple[str, str, AportGenEntry]:
raise ValueError("No generator available for " + pkgname + "!")
def generate(pkgname: str, fork_alpine: bool, fork_alpine_retain_branch: bool = False) -> None:
def generate(
pkgname: str, fork_alpine: bool = False, fork_alpine_retain_branch: bool = False
) -> None:
options: AportGenEntry
if fork_alpine:

View file

@ -539,8 +539,8 @@ def ask_for_device(context: Context) -> tuple[str, bool, str]:
# New port creation confirmed
logging.info(f"Generating new aports for: {device}...")
pmb.aportgen.generate(f"device-{device}", False)
pmb.aportgen.generate(f"linux-{device}", False)
pmb.aportgen.generate(f"device-{device}")
pmb.aportgen.generate(f"linux-{device}")
elif device_category == pmb.helpers.devices.DeviceCategory.ARCHIVED:
apkbuild = device_path.parent / "APKBUILD"
archived = pmb.parse._apkbuild.archived(apkbuild) or "No reason given (this is a bug)"