blob: 37578b7307defa86fb98e79298bbd9dfe8fb3ab1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/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
|