def download(self, files): server = 'http://archlinuxarm.org/os' file = 'ArchLinuxARM-omap-smp-latest.tar.gz' remote = path.join(server, file) local = path.join(get_temp_path(), file) http_download(remote, local) files['filesystem'] = local return files
def download(self, files): version = prompt.choose('Please select a version', ['12.03', '12.02', '12.01']) flavour = prompt.choose('Please select a flavour', ['alip', 'nano', 'ubuntu-desktop']) server = path.join('http://releases.linaro.org/images', version, 'oneiric', flavour) file = 'overo-' + flavour + '.img.gz' remote = path.join(server, file) local = path.join(get_temp_path(), file) http_download(remote, local) files['image']=local return files
def download(self, files): build = 'current' flavour = prompt.choose('Please select a flavour', ['console', 'desktop', 'palmtop']) server = path.join('http://cumulus.gumstix.org/images/angstrom/developer/', build) file = 'omap3-' + flavour + '-image-overo.tar.bz2' remote = path.join(server, file) local = path.join(get_temp_path(), file) files['filesystem'] = file http_download(remote, local) return files
def aquire(): temp = get_temp_path() for com_file, serv_file in c.files.items(): if not path.isfile(path.join(temp, com_file)): http_download(path.join(c.server, serv_file), path.join(temp, com_file))
def copy(sdcard): clear_dir(sdcard.boot_dir) temp = get_temp_path() for file in c.files: sdcard.copy_to_boot(path.join(temp, file))