forked from Mirror/pmbootstrap
Check if device was renamed
This commit is contained in:
parent
d3780364c1
commit
8c9c0ce999
2 changed files with 9 additions and 6 deletions
|
@ -222,6 +222,11 @@ def ask_for_device(args):
|
|||
device_exists = os.path.exists(args.aports + "/device/device-" +
|
||||
device + "/deviceinfo")
|
||||
if not device_exists:
|
||||
if device == args.device:
|
||||
raise RuntimeError(
|
||||
"This device does not exist anymore, check"
|
||||
" <https://postmarketos.org/renamed>"
|
||||
" to see if it was renamed")
|
||||
logging.info("You are about to do a new device port for '" +
|
||||
device + "'.")
|
||||
if not pmb.helpers.cli.confirm(args, default=True):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue