def main(): if len(sys.argv) != 2: print("usage {} <file>".format(sys.argv[0])) sys.exit(1) target_file = sys.argv[1] config = load_config() with tempfile.NamedTemporaryFile() as temp: print("Downloading") download("core", "stable", temp.name, config, "amd64") lib_list = generate_list(temp.name) lib_list = ("{}\n".format(l) for l in lib_list) with open(target_file, "w") as f: f.writelines(lib_list)
def main(): if len(sys.argv) != 2: print('usage {} <file>'.format(sys.argv[0])) sys.exit(1) target_file = sys.argv[1] config = load_config() with tempfile.NamedTemporaryFile() as temp: print('Downloading') download('core', 'stable', temp.name, config, 'amd64') lib_list = generate_list(temp.name) lib_list = ('{}\n'.format(l) for l in lib_list) with open(target_file, 'w') as f: f.writelines(lib_list)
def main(): if len(sys.argv) != 2: print('usage {} <file>'.format(sys.argv[0])) sys.exit(1) target_file = sys.argv[1] config = load_config() with tempfile.NamedTemporaryFile() as temp: print('Downloading') download('ubuntu-core', 'stable', temp.name, config, 'amd64') lib_list = generate_list(temp.name) lib_list = ('{}\n'.format(l) for l in lib_list) with open(target_file, 'w') as f: f.writelines(lib_list)
def pull(self): super().pull() config = load_config() storeapi.download('ubuntu-core', 'edge', self.os_snap, config, self.project.deb_arch)
def pull(self): super().pull() config = load_config() storeapi.download( 'ubuntu-core', 'edge', self.os_snap, config, self.project.deb_arch)
def pull(self): super().pull() config = load_config() storeapi.download( 'ubuntu-core/edge', self.os_snap, config, self._target_arch['deb'])