forked from Mirror/pmbootstrap
treewide: drop context.device (MR 2332)
this turns out to have never been set??? We have config.device anyways, so let's use that instead. Tweaked-by: Oliver Smith <ollieparanoid@postmarketos.org> Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
parent
84332cdce0
commit
35eff91564
6 changed files with 26 additions and 34 deletions
|
@ -439,7 +439,7 @@ def ask_for_device(context: Context):
|
|||
device = f"{vendor}-{codename}"
|
||||
device_path = pmb.helpers.devices.find_path(device, "deviceinfo")
|
||||
if device_path is None:
|
||||
if device == context.device:
|
||||
if device == context.config.device:
|
||||
raise RuntimeError(
|
||||
"This device does not exist anymore, check"
|
||||
" <https://postmarketos.org/renamed>"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue