forked from Mirror/pmbootstrap
pmb.{aportgen,parse}: deprecate deviceinfo_keyboard (MR 2396)
See https://gitlab.com/postmarketOS/pmaports/-/issues/3145
This commit is contained in:
parent
9131b910c7
commit
b65d677d34
3 changed files with 1 additions and 10 deletions
|
@ -62,10 +62,6 @@ def ask_for_chassis():
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def ask_for_keyboard() -> bool:
|
|
||||||
return pmb.helpers.cli.confirm("Does the device have a hardware" " keyboard?")
|
|
||||||
|
|
||||||
|
|
||||||
def ask_for_external_storage() -> bool:
|
def ask_for_external_storage() -> bool:
|
||||||
return pmb.helpers.cli.confirm(
|
return pmb.helpers.cli.confirm(
|
||||||
"Does the device have a sdcard or" " other external storage medium?"
|
"Does the device have a sdcard or" " other external storage medium?"
|
||||||
|
@ -191,7 +187,6 @@ def generate_deviceinfo(
|
||||||
year: str,
|
year: str,
|
||||||
arch: Arch,
|
arch: Arch,
|
||||||
chassis: str,
|
chassis: str,
|
||||||
has_keyboard: bool,
|
|
||||||
has_external_storage: bool,
|
has_external_storage: bool,
|
||||||
flash_method: str,
|
flash_method: str,
|
||||||
bootimg=None,
|
bootimg=None,
|
||||||
|
@ -214,7 +209,6 @@ def generate_deviceinfo(
|
||||||
|
|
||||||
# Device related
|
# Device related
|
||||||
deviceinfo_chassis="{chassis}"
|
deviceinfo_chassis="{chassis}"
|
||||||
deviceinfo_keyboard="{"true" if has_keyboard else "false"}"
|
|
||||||
deviceinfo_external_storage="{external_storage}"
|
deviceinfo_external_storage="{external_storage}"
|
||||||
|
|
||||||
# Bootloader related
|
# Bootloader related
|
||||||
|
@ -339,7 +333,6 @@ def generate(pkgname: str):
|
||||||
name = ask_for_name(manufacturer)
|
name = ask_for_name(manufacturer)
|
||||||
year = ask_for_year()
|
year = ask_for_year()
|
||||||
chassis = ask_for_chassis()
|
chassis = ask_for_chassis()
|
||||||
has_keyboard = ask_for_keyboard()
|
|
||||||
has_external_storage = ask_for_external_storage()
|
has_external_storage = ask_for_external_storage()
|
||||||
flash_method = ask_for_flash_method()
|
flash_method = ask_for_flash_method()
|
||||||
bootimg = None
|
bootimg = None
|
||||||
|
@ -353,7 +346,6 @@ def generate(pkgname: str):
|
||||||
year,
|
year,
|
||||||
arch,
|
arch,
|
||||||
chassis,
|
chassis,
|
||||||
has_keyboard,
|
|
||||||
has_external_storage,
|
has_external_storage,
|
||||||
flash_method,
|
flash_method,
|
||||||
bootimg,
|
bootimg,
|
||||||
|
|
|
@ -10,7 +10,6 @@ deviceinfo_arch="x86_64"
|
||||||
# Device related
|
# Device related
|
||||||
deviceinfo_gpu_accelerated="true"
|
deviceinfo_gpu_accelerated="true"
|
||||||
deviceinfo_chassis="vm"
|
deviceinfo_chassis="vm"
|
||||||
deviceinfo_keyboard="true"
|
|
||||||
deviceinfo_external_storage="true"
|
deviceinfo_external_storage="true"
|
||||||
deviceinfo_screen_width="1024"
|
deviceinfo_screen_width="1024"
|
||||||
deviceinfo_screen_height="768"
|
deviceinfo_screen_height="768"
|
||||||
|
|
|
@ -101,7 +101,7 @@ class Deviceinfo:
|
||||||
|
|
||||||
# device
|
# device
|
||||||
chassis: str
|
chassis: str
|
||||||
keyboard: str | None = ""
|
keyboard: str | None = "" # deprecated
|
||||||
external_storage: str | None = ""
|
external_storage: str | None = ""
|
||||||
gpu_accelerated: bool | None = False
|
gpu_accelerated: bool | None = False
|
||||||
dev_touchscreen: str | None = ""
|
dev_touchscreen: str | None = ""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue