forked from Mirror/pmbootstrap
parent
eddf81a730
commit
b6003a2815
6 changed files with 127 additions and 45 deletions
|
@ -28,6 +28,11 @@ def deviceinfo(args, device=None):
|
|||
if not device:
|
||||
device = args.device
|
||||
|
||||
if not os.path.exists(args.aports):
|
||||
logging.fatal("Aports directory is missing")
|
||||
logging.fatal("Please provide a path to the aports directory using the -p flag")
|
||||
raise RuntimeError("Aports directory missing")
|
||||
|
||||
aport = args.aports + "/device/device-" + device
|
||||
if not os.path.exists(aport) or not os.path.exists(aport + "/deviceinfo"):
|
||||
logging.fatal("You will need to create a device-specific package")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue