From dbf3e21446bce140e435abfb6217dc70897887d4 Mon Sep 17 00:00:00 2001 From: Anri Dellal Date: Thu, 5 Dec 2024 16:13:31 +0300 Subject: [PATCH] pmb.aportgen.device: fix skipping when analyzing boot image (MR 2507) Fix #2516 --- pmb/aportgen/device.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pmb/aportgen/device.py b/pmb/aportgen/device.py index af75e256..950db3db 100644 --- a/pmb/aportgen/device.py +++ b/pmb/aportgen/device.py @@ -111,9 +111,9 @@ def ask_for_bootimg(): while True: response = pmb.helpers.cli.ask("Path", None, "", False) - path = Path(os.path.expanduser(response)) - if not path: + if not response: return None + path = Path(os.path.expanduser(response)) try: return pmb.parse.bootimg(path) except Exception as e: