#!/usr/bin/python """ Get the latest hwpack depending on the BOARD_TYPE from snapshots.linaro.org """ from find_latest import find_latest_hwpack import os import sys # hwpack_type is always set by the caller hwpack_type = os.getenv("hwpack_type") if hwpack_type == None: sys.exit("hwpack type is not defined.") else: hwpack_url = find_latest_hwpack(hwpack_type) print hwpack_url