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:
Caleb Connolly 2024-06-23 21:05:23 +02:00 committed by Oliver Smith
parent 84332cdce0
commit 35eff91564
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
6 changed files with 26 additions and 34 deletions

View file

@ -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>"