def update_diff(opts, sig):
    """Update diff"""
    for _ in range(1, 6):
        info("[+] \033[92mDownloading cdiff:\033[0m %s" % sig)
        status, code = download_sig(opts, sig)
        if status:
            info("=> Downloaded cdiff: %s" % sig)
            copy_sig(sig, opts, 1)
        else:
            if code == 404:
                error("=> \033[91mSignature:\033[0m %s not found" % sig)
            error("=> \033[91mDownload failed:\033[0m %s code: %d"
                  % (sig, code))
Update diff