Fix: cannot run 'pmbootstrap config' when specified device doesn't exist (#689)

This commit is contained in:
Pablo Castellano 2017-10-03 20:37:50 +02:00 committed by Oliver Smith
parent 4db27a2d91
commit 7a519a911e
1 changed files with 1 additions and 1 deletions

View File

@ -330,7 +330,7 @@ def arguments():
"find_aport": {}})
# Add and verify the deviceinfo (only after initialization)
if args.action != "init":
if args.action not in ("init", "config"):
setattr(args, "deviceinfo", pmb.parse.deviceinfo(args))
arch = args.deviceinfo["arch"]
if (arch != args.arch_native and