Andy Doan | 15aa23b | 2012-02-02 16:40:58 -0600 | [diff] [blame] | 1 | #!/usr/bin/env python |
| 2 | # Copyright (C) 2012 Linaro |
| 3 | # |
| 4 | # Author: Andy Doan <andy.doan@linaro.org> |
| 5 | # |
| 6 | # This file is part of Linaro Daily Prebuilt Images. |
| 7 | # |
| 8 | # Linaro Daily Prebuilt Images is free software; you can redistribute it and/or |
| 9 | # modify it under the terms of the GNU General Public License |
| 10 | # as published by the Free Software Foundation; either version 2 |
| 11 | # of the License, or (at your option) any later version. |
| 12 | # |
| 13 | # Linaro Daily Prebuilt Images is distributed in the hope that it will be useful, |
| 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | # GNU General Public License for more details. |
| 17 | # |
| 18 | # You should have received a copy of the GNU General Public License |
| 19 | # along with Linaro Image Tools; if not, write to the Free Software |
| 20 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, |
| 21 | # USA. |
| 22 | |
Andy Doan | fccf484 | 2012-03-08 10:42:19 -0600 | [diff] [blame] | 23 | from linaro_fetch_image import fetch_image |
Andy Doan | 15aa23b | 2012-02-02 16:40:58 -0600 | [diff] [blame] | 24 | from linaro_image_tools import cmd_runner |
| 25 | |
Andy Doan | 8ff38f0 | 2012-02-20 16:32:37 -0600 | [diff] [blame] | 26 | import crawler |
| 27 | |
Andy Doan | 15aa23b | 2012-02-02 16:40:58 -0600 | [diff] [blame] | 28 | import argparse |
| 29 | import bz2 |
| 30 | import datetime |
Andy Doan | 3634c47 | 2012-04-17 12:50:58 -0500 | [diff] [blame] | 31 | import hashlib |
Andy Doan | c6500af | 2012-03-15 14:44:39 -0500 | [diff] [blame] | 32 | import os |
Andy Doan | 15aa23b | 2012-02-02 16:40:58 -0600 | [diff] [blame] | 33 | import re |
Andy Doan | e449bce | 2012-03-21 15:22:31 -0500 | [diff] [blame] | 34 | import urlparse |
Andy Doan | 35ee9dc | 2012-05-11 01:10:12 -0500 | [diff] [blame] | 35 | import string |
Andy Doan | 4202d88 | 2012-03-29 21:36:09 -0500 | [diff] [blame] | 36 | import sys |
Andy Doan | 15aa23b | 2012-02-02 16:40:58 -0600 | [diff] [blame] | 37 | |
Andy Doan | ea2e1ea | 2012-04-23 11:56:29 -0500 | [diff] [blame] | 38 | class HwPack: |
| 39 | def __init__(self, lmcname, eula=False, pre_inst_script=None): |
| 40 | self.lmcname = lmcname |
| 41 | if eula: |
| 42 | self.eula = 'EULA.txt' |
| 43 | else: |
Andy Doan | 4aabf02 | 2012-04-26 14:30:29 -0500 | [diff] [blame] | 44 | self.eula = 'OPEN-EULA.txt' |
Andy Doan | ea2e1ea | 2012-04-23 11:56:29 -0500 | [diff] [blame] | 45 | self.pre_inst_script = pre_inst_script |
| 46 | |
| 47 | def do_eula(self, imgfile): |
| 48 | fname = '%s/%s' % (os.path.dirname(imgfile), self.eula) |
| 49 | with file(fname, 'a'): |
| 50 | pass #just need the file to exist |
| 51 | |
Andy Doan | 15aa23b | 2012-02-02 16:40:58 -0600 | [diff] [blame] | 52 | # a mapping of hwpack name to l-m-c name |
| 53 | HWPACKS = { |
Andy Doan | ea2e1ea | 2012-04-23 11:56:29 -0500 | [diff] [blame] | 54 | 'beagleboard': HwPack('beagle'), |
| 55 | 'overo': HwPack('overo'), |
| 56 | 'lt-panda': HwPack('panda'), |
Andy Doan | 7a8cc10 | 2012-04-26 09:25:33 -0500 | [diff] [blame] | 57 | 'lt-panda-x11-base': HwPack('panda'), |
Andy Doan | ea2e1ea | 2012-04-23 11:56:29 -0500 | [diff] [blame] | 58 | 'lt-mx5': HwPack('mx53loco'), |
| 59 | 'lt-mx6': HwPack('mx6qsabrelite'), |
Andy Doan | 490f620 | 2012-04-25 10:56:08 -0500 | [diff] [blame] | 60 | 'lt-origen': HwPack('origen'), |
| 61 | 'leb-origen': HwPack('origen'), |
Andy Doan | ea2e1ea | 2012-04-23 11:56:29 -0500 | [diff] [blame] | 62 | 'lt-snowball': HwPack('snowball_sd', True, 'ste-preinstall.sh'), |
| 63 | 'lt-snowball-x11-base': HwPack('snowball_sd', True, 'ste-preinstall.sh'), |
Andy Doan | edffb5d | 2012-04-25 11:22:19 -0500 | [diff] [blame] | 64 | 'vexpress': HwPack('vexpress'), |
Andy Doan | ea2e1ea | 2012-04-23 11:56:29 -0500 | [diff] [blame] | 65 | 'efikamx': HwPack('efikamx'), |
| 66 | 'igep': HwPack('igep'), |
Andy Doan | 15aa23b | 2012-02-02 16:40:58 -0600 | [diff] [blame] | 67 | } |
| 68 | # a mapping of binary image to its image_file size |
| 69 | BINARIES = { |
Andy Doan | 4202d88 | 2012-03-29 21:36:09 -0500 | [diff] [blame] | 70 | # release images |
| 71 | 'nano': '512M', |
| 72 | 'alip': '2G', |
| 73 | 'ubuntu-desktop': '3G', |
| 74 | 'linarotv-xbmc': '3G', |
Andy Doan | 15aa23b | 2012-02-02 16:40:58 -0600 | [diff] [blame] | 75 | } |
| 76 | |
Andy Doan | 15aa23b | 2012-02-02 16:40:58 -0600 | [diff] [blame] | 77 | def today(): |
| 78 | d = datetime.date.today() |
| 79 | return "%d%02d%02d" % (d.year, d.month, d.day) |
| 80 | |
Andy Doan | 8ff38f0 | 2012-02-20 16:32:37 -0600 | [diff] [blame] | 81 | def hwpack_available(date, hwpack, platform): |
Andy Doan | 540a4b1 | 2012-04-17 11:48:11 -0500 | [diff] [blame] | 82 | url = 'http://snapshots.linaro.org/%s/hwpacks/%s' % (platform, hwpack) |
Andy Doan | 8ff38f0 | 2012-02-20 16:32:37 -0600 | [diff] [blame] | 83 | hwpacks = crawler.latest_hwpacks(url) |
| 84 | for hwpack in hwpacks: |
| 85 | if hwpack[0] == date: |
| 86 | return hwpack[1] |
| 87 | |
Andy Doan | 15aa23b | 2012-02-02 16:40:58 -0600 | [diff] [blame] | 88 | return False |
| 89 | |
| 90 | def compress_image(imgfile): |
| 91 | print "compressing %s" % imgfile |
| 92 | args = ('bzip2', imgfile) |
| 93 | cmd_runner.run(args).wait() |
Andy Doan | 23ce4e1 | 2012-03-21 12:46:21 -0500 | [diff] [blame] | 94 | return '%s.bz2' % imgfile |
| 95 | |
| 96 | def zsync_image(imgfile): |
| 97 | print "making zsync file for %s" % imgfile |
| 98 | args = ('zsyncmake', '-o', '%s.zsync'%imgfile, imgfile) |
| 99 | cmd_runner.run(args).wait() |
Andy Doan | 15aa23b | 2012-02-02 16:40:58 -0600 | [diff] [blame] | 100 | |
Andy Doan | 3634c47 | 2012-04-17 12:50:58 -0500 | [diff] [blame] | 101 | def md5sum(fname): |
| 102 | md5 = hashlib.md5() |
| 103 | with open(fname, 'rb') as f: |
| 104 | while True: |
| 105 | data = f.read(4096) |
| 106 | if not data: break |
| 107 | md5.update(data) |
| 108 | return md5.hexdigest() |
| 109 | |
Ricardo Salveti de Araujo | b93a7ec | 2012-05-29 14:07:53 -0300 | [diff] [blame^] | 110 | def create_image_info(infofile, bz2file, binary_file, hwpack_url, rootfs_url): |
| 111 | ''' prints out the md5sum and hwpack/rootfs info for the given image |
Andy Doan | 3634c47 | 2012-04-17 12:50:58 -0500 | [diff] [blame] | 112 | ''' |
| 113 | print "building image info for: %s" % bz2file |
| 114 | md5 = md5sum(bz2file) |
| 115 | |
| 116 | binary_file = os.path.basename(binary_file) |
Andy Doan | 35ee9dc | 2012-05-11 01:10:12 -0500 | [diff] [blame] | 117 | tfile = '%s/image_info_template.html' % os.path.dirname(__file__) |
Andy Doan | 3634c47 | 2012-04-17 12:50:58 -0500 | [diff] [blame] | 118 | |
Andy Doan | 35ee9dc | 2012-05-11 01:10:12 -0500 | [diff] [blame] | 119 | tmpl = None |
| 120 | with open(tfile) as f: |
| 121 | buff = f.read() |
| 122 | tmpl = string.Template(buff) |
| 123 | |
| 124 | title = 'Pre-Built Image Info' |
Ricardo Salveti de Araujo | b93a7ec | 2012-05-29 14:07:53 -0300 | [diff] [blame^] | 125 | |
| 126 | # build hwpack manifest and rootfs packages links |
| 127 | hwpack_re = re.search(r'(hwpack_linaro.*\d\w*)(.*)$', hwpack_url) |
| 128 | hwpack_name = "".join(hwpack_re.groups()) |
| 129 | hwpack_manifest = hwpack_name + '.manifest.txt' |
| 130 | hwpack_manifest_url = re.sub('.tar.gz$', '.manifest.txt', hwpack_url) |
| 131 | |
| 132 | rootfs_re = re.search(r'(linaro-.*\d)(.*)$', rootfs_url) |
| 133 | rootfs_name = "".join(rootfs_re.groups()) |
| 134 | rootfs_packages = rootfs_name + '.packages' |
| 135 | rootfs_packages_url = re.sub('.tar.gz$', '.packages', rootfs_url) |
| 136 | |
| 137 | buff = tmpl.substitute( |
| 138 | title=title, md5=md5, image_name=os.path.basename(bz2file), |
| 139 | hwpack_name=hwpack_name, hwpack_url=hwpack_url, |
| 140 | rootfs_name=rootfs_name, rootfs_url=rootfs_url, |
| 141 | hwpack_manifest_name=hwpack_manifest, |
| 142 | hwpack_manifest_url=hwpack_manifest_url, |
| 143 | rootfs_packages_name=rootfs_packages, |
| 144 | rootfs_packages_url=rootfs_packages_url) |
Andy Doan | 3c0c389 | 2012-04-25 11:09:53 -0500 | [diff] [blame] | 145 | with open(infofile, 'w') as f: |
Andy Doan | 35ee9dc | 2012-05-11 01:10:12 -0500 | [diff] [blame] | 146 | f.write(buff) |
Andy Doan | 3634c47 | 2012-04-17 12:50:58 -0500 | [diff] [blame] | 147 | |
Andy Doan | b00dbc0 | 2012-03-15 16:23:06 -0500 | [diff] [blame] | 148 | def build_image(lmc, imgfile, hwpack, hwpack_file, binary, binary_file): |
Andy Doan | 15aa23b | 2012-02-02 16:40:58 -0600 | [diff] [blame] | 149 | print "building image: %s" % imgfile |
Andy Doan | ea2e1ea | 2012-04-23 11:56:29 -0500 | [diff] [blame] | 150 | hwpi = HWPACKS[hwpack] |
Andy Doan | 15aa23b | 2012-02-02 16:40:58 -0600 | [diff] [blame] | 151 | size = BINARIES[binary] |
| 152 | |
Andy Doan | 4fa16dc | 2012-02-09 17:47:45 -0800 | [diff] [blame] | 153 | print 'running l-m-c: %s' % lmc |
Andy Doan | c6500af | 2012-03-15 14:44:39 -0500 | [diff] [blame] | 154 | args = [lmc, |
Andy Doan | ea2e1ea | 2012-04-23 11:56:29 -0500 | [diff] [blame] | 155 | '--dev', hwpi.lmcname, |
Andy Doan | 15aa23b | 2012-02-02 16:40:58 -0600 | [diff] [blame] | 156 | '--image_file', imgfile, |
| 157 | '--image_size', size, |
| 158 | '--hwpack-force-yes', |
| 159 | '--hwpack', hwpack_file, |
| 160 | '--binary', binary_file, |
Andy Doan | c6500af | 2012-03-15 14:44:39 -0500 | [diff] [blame] | 161 | ] |
| 162 | |
Andy Doan | ea2e1ea | 2012-04-23 11:56:29 -0500 | [diff] [blame] | 163 | if hwpi.pre_inst_script is not None: |
Andy Doan | c6500af | 2012-03-15 14:44:39 -0500 | [diff] [blame] | 164 | sdir = os.path.abspath(os.path.dirname(__file__)) |
Andy Doan | ea2e1ea | 2012-04-23 11:56:29 -0500 | [diff] [blame] | 165 | script = "%s/%s" % (sdir, hwpi.pre_inst_script) |
Andy Doan | c6500af | 2012-03-15 14:44:39 -0500 | [diff] [blame] | 166 | print "using presintall script: %s" % script |
| 167 | args.append('--preinstall-script') |
| 168 | args.append(script) |
| 169 | |
Andy Doan | ea2e1ea | 2012-04-23 11:56:29 -0500 | [diff] [blame] | 170 | hwpi.do_eula(imgfile) |
Andy Doan | 15aa23b | 2012-02-02 16:40:58 -0600 | [diff] [blame] | 171 | cmd_runner.run(args, as_root=True).wait() |
Andy Doan | 15aa23b | 2012-02-02 16:40:58 -0600 | [diff] [blame] | 172 | |
Andy Doan | 184cd3b | 2012-03-29 22:20:02 -0500 | [diff] [blame] | 173 | class SnapshotCrawler: |
| 174 | def __init__(self, date, platform, hwpacks, binaries): |
| 175 | self.date = date |
| 176 | self.platform = platform |
| 177 | self.hwpacks = hwpacks |
| 178 | self.binaries = binaries |
Andy Doan | e449bce | 2012-03-21 15:22:31 -0500 | [diff] [blame] | 179 | |
Andy Doan | 184cd3b | 2012-03-29 22:20:02 -0500 | [diff] [blame] | 180 | def get_binaries(self): |
| 181 | '''return a hash table of binary->url''' |
| 182 | binaryf = {} |
| 183 | for binary in self.binaries: |
Andy Doan | 540a4b1 | 2012-04-17 11:48:11 -0500 | [diff] [blame] | 184 | url = 'http://snapshots.linaro.org/%s/images/%s' % (self.platform, binary) |
Andy Doan | 184cd3b | 2012-03-29 22:20:02 -0500 | [diff] [blame] | 185 | (date, url) = crawler.latest_rfs(url) |
Andy Doan | 4202d88 | 2012-03-29 21:36:09 -0500 | [diff] [blame] | 186 | binaryf[binary] = url |
Andy Doan | 4202d88 | 2012-03-29 21:36:09 -0500 | [diff] [blame] | 187 | |
Andy Doan | 184cd3b | 2012-03-29 22:20:02 -0500 | [diff] [blame] | 188 | return binaryf |
Andy Doan | a397737 | 2012-03-29 12:22:44 -0500 | [diff] [blame] | 189 | |
Andy Doan | 184cd3b | 2012-03-29 22:20:02 -0500 | [diff] [blame] | 190 | def get_hwpack_url(self, hwpack): |
| 191 | hwpackname = "%s-%s" % (hwpack, self.platform) |
| 192 | return hwpack_available(self.date, hwpack, self.platform) |
Andy Doan | 4202d88 | 2012-03-29 21:36:09 -0500 | [diff] [blame] | 193 | |
Andy Doan | 184cd3b | 2012-03-29 22:20:02 -0500 | [diff] [blame] | 194 | def get_image_name(self, odir, hwpack, hwpack_url, binary): |
| 195 | |
| 196 | #covert a url like: |
Andy Doan | 540a4b1 | 2012-04-17 11:48:11 -0500 | [diff] [blame] | 197 | # http://snapshots.linaro.org/precise/hwpacks/lt-panda/87/hwpack_linaro-lt-panda_20120417-87_armhf_supported.tar.gz |
Andy Doan | 184cd3b | 2012-03-29 22:20:02 -0500 | [diff] [blame] | 198 | # to: |
Andy Doan | 66e2d5c | 2012-04-18 23:01:59 -0500 | [diff] [blame] | 199 | # precise/pre-built/lt-panda/87/<file>.img |
Andy Doan | 184cd3b | 2012-03-29 22:20:02 -0500 | [diff] [blame] | 200 | path = urlparse.urlparse(hwpack_url).path |
Andy Doan | 66e2d5c | 2012-04-18 23:01:59 -0500 | [diff] [blame] | 201 | parts = path.split('/') |
| 202 | name = parts[-1] #use for the file name below |
| 203 | path = '/'.join(parts[-3:-1]) |
Andy Doan | 184cd3b | 2012-03-29 22:20:02 -0500 | [diff] [blame] | 204 | |
| 205 | path = '%s/%s' % (odir, path) |
| 206 | if not os.path.exists(path): |
| 207 | os.makedirs(path) |
Andy Doan | 66e2d5c | 2012-04-18 23:01:59 -0500 | [diff] [blame] | 208 | |
| 209 | date = re.search(r'_(\d+-\d+)_', name).group(1) |
| 210 | return "%s/%s-%s_%s_%s.img" %(path,hwpack,self.platform,binary,date) |
Andy Doan | 184cd3b | 2012-03-29 22:20:02 -0500 | [diff] [blame] | 211 | |
Andy Doan | 15aa23b | 2012-02-02 16:40:58 -0600 | [diff] [blame] | 212 | def main(): |
| 213 | day = today() |
| 214 | hwpacks = HWPACKS.keys() |
| 215 | binaries = BINARIES.keys() |
| 216 | |
| 217 | p = argparse.ArgumentParser(description= |
Andy Doan | a397737 | 2012-03-29 12:22:44 -0500 | [diff] [blame] | 218 | 'Builds a matrix of builds from the latest build on ' |
| 219 | 'snapshots.linaro.org or release images on releases.linaro.org') |
Andy Doan | 15aa23b | 2012-02-02 16:40:58 -0600 | [diff] [blame] | 220 | |
Andy Doan | 94bfe31 | 2012-02-09 17:57:29 -0800 | [diff] [blame] | 221 | p.add_argument('-o', dest='out_dir', default='./out', |
Andy Doan | 15aa23b | 2012-02-02 16:40:58 -0600 | [diff] [blame] | 222 | help='The out directory for downloaded and built files, default=./') |
| 223 | p.add_argument('-d', dest='date', default=day, |
| 224 | help='The date, default=%s' % day) |
| 225 | p.add_argument('-w', dest='hwpacks', action='append', |
| 226 | help='The hwpacks to generate for, default=%s' % |
| 227 | ', '.join(hwpacks)) |
| 228 | p.add_argument('-b', dest='binaries', action='append', |
| 229 | help='The binaries to generate for, default=%s' % |
| 230 | ', '.join(binaries)) |
Andy Doan | 540a4b1 | 2012-04-17 11:48:11 -0500 | [diff] [blame] | 231 | p.add_argument('-p', dest='platform', default='precise', |
| 232 | help='The platform, default=precise') |
Andy Doan | 4202d88 | 2012-03-29 21:36:09 -0500 | [diff] [blame] | 233 | p.add_argument('-r', dest='release', action='store_true', default=False, |
| 234 | help='If this is for release images. NOTE: the "date" arg' |
| 235 | 'will then become the cycle ie -d 12.03') |
Andy Doan | 15aa23b | 2012-02-02 16:40:58 -0600 | [diff] [blame] | 236 | |
| 237 | args = p.parse_args() |
Andy Doan | a397737 | 2012-03-29 12:22:44 -0500 | [diff] [blame] | 238 | |
Andy Doan | 15aa23b | 2012-02-02 16:40:58 -0600 | [diff] [blame] | 239 | if args.hwpacks: |
| 240 | hwpacks = args.hwpacks |
| 241 | if args.binaries: |
| 242 | binaries = args.binaries |
| 243 | |
Andy Doan | 1c6ef8b | 2012-04-23 12:28:50 -0500 | [diff] [blame] | 244 | crawler.cookie_setup() |
| 245 | |
Andy Doan | 15aa23b | 2012-02-02 16:40:58 -0600 | [diff] [blame] | 246 | dm = fetch_image.DownloadManager(args.out_dir) |
Andy Doan | 15aa23b | 2012-02-02 16:40:58 -0600 | [diff] [blame] | 247 | |
Andy Doan | 4202d88 | 2012-03-29 21:36:09 -0500 | [diff] [blame] | 248 | if args.release: |
Andy Doan | 184cd3b | 2012-03-29 22:20:02 -0500 | [diff] [blame] | 249 | site = ReleaseCrawler(args.date, args.platform, hwpacks, binaries) |
Andy Doan | 4202d88 | 2012-03-29 21:36:09 -0500 | [diff] [blame] | 250 | else: |
Andy Doan | 184cd3b | 2012-03-29 22:20:02 -0500 | [diff] [blame] | 251 | site = SnapshotCrawler(args.date, args.platform, hwpacks, binaries) |
| 252 | |
| 253 | binaryf = site.get_binaries() |
Andy Doan | 15aa23b | 2012-02-02 16:40:58 -0600 | [diff] [blame] | 254 | |
Andy Doan | b00dbc0 | 2012-03-15 16:23:06 -0500 | [diff] [blame] | 255 | lmc = '%s/linaro-image-tools/linaro-media-create' % args.out_dir |
Andy Doan | 184cd3b | 2012-03-29 22:20:02 -0500 | [diff] [blame] | 256 | odir = '%s/pre-built' % args.out_dir |
Andy Doan | b00dbc0 | 2012-03-15 16:23:06 -0500 | [diff] [blame] | 257 | |
Andy Doan | 15aa23b | 2012-02-02 16:40:58 -0600 | [diff] [blame] | 258 | for hwpack in hwpacks: |
Andy Doan | 184cd3b | 2012-03-29 22:20:02 -0500 | [diff] [blame] | 259 | url = site.get_hwpack_url(hwpack) |
Andy Doan | b00dbc0 | 2012-03-15 16:23:06 -0500 | [diff] [blame] | 260 | |
Andy Doan | 2cfe5e6 | 2012-02-09 17:41:45 -0800 | [diff] [blame] | 261 | if url is not None and url is not False: |
Andy Doan | 15aa23b | 2012-02-02 16:40:58 -0600 | [diff] [blame] | 262 | hwpf = dm.download(url, None) |
| 263 | for binary in binaries: |
Ricardo Salveti de Araujo | b93a7ec | 2012-05-29 14:07:53 -0300 | [diff] [blame^] | 264 | # create the image and metadata |
Andy Doan | 184cd3b | 2012-03-29 22:20:02 -0500 | [diff] [blame] | 265 | imgfile = site.get_image_name(odir,hwpack,url,binary) |
Ricardo Salveti de Araujo | b93a7ec | 2012-05-29 14:07:53 -0300 | [diff] [blame^] | 266 | infofile = '%s.html' % os.path.splitext(imgfile)[0] |
Andy Doan | 8121190 | 2012-03-14 14:37:30 -0500 | [diff] [blame] | 267 | rfsf = dm.download(binaryf[binary], None) |
Andy Doan | b00dbc0 | 2012-03-15 16:23:06 -0500 | [diff] [blame] | 268 | build_image(lmc, imgfile, hwpack, hwpf, binary, rfsf) |
Ricardo Salveti de Araujo | b93a7ec | 2012-05-29 14:07:53 -0300 | [diff] [blame^] | 269 | bz2file = compress_image(imgfile) |
| 270 | zsync_image(bz2file) |
| 271 | create_image_info(infofile, bz2file, |
| 272 | imgfile, url, binaryf[binary]) |
Andy Doan | 15aa23b | 2012-02-02 16:40:58 -0600 | [diff] [blame] | 273 | else: |
Andy Doan | 8ff38f0 | 2012-02-20 16:32:37 -0600 | [diff] [blame] | 274 | print '%s hwpack not available for %s' % (args.date,hwpack) |
Andy Doan | 15aa23b | 2012-02-02 16:40:58 -0600 | [diff] [blame] | 275 | |
| 276 | if __name__ == '__main__': |
| 277 | main() |
| 278 | |