Close #327: Add initial setup.py (#443)

This commit is contained in:
Yuval Adam 2017-09-02 21:30:40 +02:00 committed by Oliver Smith
parent eddf81a730
commit b6003a2815
6 changed files with 127 additions and 45 deletions

View file

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