コード例 #1
0
def stripPrecompiled(string):
    if string.startswith('precompiled/'):
        return string[12:]
    return string


files = [stripPrecompiled(file) for file in argv[1:]]

Updater.MAIN_URL = 'file:' + updateDirectory
downloader = XMLFileDownloader()
downloader.start()
plugins = PluginCollection()

progress = StderrProgress()
checksummer = Checksummer(progress)
if len(files) == 0:
    checksummer.updateFromLocal()
else:
    if files[0] == '--auto':
        automatic = True
        files = files[1:]
    else:
        automatic = False
    checksummer.updateFromLocal(files)
    # check dependencies
    check = files
    needUpload = []
    while len(check) > 0:
        implied = []
        for file in check: