示例#1
0
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)
示例#2
0
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)
示例#3
0
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)
示例#4
0
 def pull(self):
     super().pull()
     config = load_config()
     storeapi.download('ubuntu-core', 'edge', self.os_snap, config,
                       self.project.deb_arch)
示例#5
0
文件: kernel.py 项目: 0-T-0/snapcraft
 def pull(self):
     super().pull()
     config = load_config()
     storeapi.download(
         'ubuntu-core', 'edge', self.os_snap, config, self.project.deb_arch)
示例#6
0
 def pull(self):
     super().pull()
     config = load_config()
     storeapi.download(
         'ubuntu-core/edge', self.os_snap, config, self._target_arch['deb'])