mirror of
https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git
synced 2025-07-13 03:19:47 +03:00
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:
parent
ed57b3dac3
commit
606eb669fc
2 changed files with 5 additions and 3 deletions
|
@ -61,7 +61,9 @@ def properties(pkgname: str) -> tuple[str, str, AportGenEntry]:
|
||||||
raise ValueError("No generator available for " + pkgname + "!")
|
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
|
options: AportGenEntry
|
||||||
|
|
||||||
if fork_alpine:
|
if fork_alpine:
|
||||||
|
|
|
@ -539,8 +539,8 @@ def ask_for_device(context: Context) -> tuple[str, bool, str]:
|
||||||
|
|
||||||
# New port creation confirmed
|
# New port creation confirmed
|
||||||
logging.info(f"Generating new aports for: {device}...")
|
logging.info(f"Generating new aports for: {device}...")
|
||||||
pmb.aportgen.generate(f"device-{device}", False)
|
pmb.aportgen.generate(f"device-{device}")
|
||||||
pmb.aportgen.generate(f"linux-{device}", False)
|
pmb.aportgen.generate(f"linux-{device}")
|
||||||
elif device_category == pmb.helpers.devices.DeviceCategory.ARCHIVED:
|
elif device_category == pmb.helpers.devices.DeviceCategory.ARCHIVED:
|
||||||
apkbuild = device_path.parent / "APKBUILD"
|
apkbuild = device_path.parent / "APKBUILD"
|
||||||
archived = pmb.parse._apkbuild.archived(apkbuild) or "No reason given (this is a bug)"
|
archived = pmb.parse._apkbuild.archived(apkbuild) or "No reason given (this is a bug)"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue