diff --git a/advisors/helper/ver_rec_excpt.yaml b/advisors/helper/ver_rec_excpt.yaml deleted file mode 100644 index fcf6f7b0767b0f820fe265e937a30b299fc7b29e..0000000000000000000000000000000000000000 --- a/advisors/helper/ver_rec_excpt.yaml +++ /dev/null @@ -1,25 +0,0 @@ ---- -# version recommend exception list -gegl04: - - '20001120.v002' -gimp: - - '19990910' -nss: - - '334.20030307' -glibc: - - '9000' -kata-shim: - - '20191207' -kata-runtime: - - '20191207' -kata-proxy: - - '20191207' -kata-agent: - - '20191207' -kexec-tools: - - '200' -sombok: - - '2011' -shadow: - - '1999' - - '2000' diff --git a/advisors/simple-update-robot.py b/advisors/simple-update-robot.py index 7d4f44c7329077bede9115479bc1d2ed8e745101..8cc4b48f89cab06b5c30566c697c768e73ab94aa 100755 --- a/advisors/simple-update-robot.py +++ b/advisors/simple-update-robot.py @@ -37,7 +37,9 @@ def download_source_url(spec, o_ver, n_ver): return False elif source.startswith("http") or source.startswith("ftp"): fn = os.path.basename(source) - for time in range(2): + n = 0 + while n < 2: + n += 1 if subprocess.call(["curl", "-m", "600", "-L", source, "-o", fn]): continue else: @@ -60,7 +62,9 @@ def download_upstream_url(gt, repo, n_ver): if rp_yaml["version_control"] == "github": url = "https://github.com/{rp}/archive/{nv}.tar.gz".format(rp=rp_yaml["src_repo"], nv=n_ver) fn = "{rp}.{nv}.tar.gz".format(rp=repo, nv=n_ver) - for time in range(2): + n = 0 + while n < 2: + n += 1 if subprocess.call(["curl", "-m", "600", "-L", url, "-o", fn]): continue else: @@ -319,7 +323,8 @@ if __name__ == "__main__": pars.add_argument("-fc", "--fork_then_clone", help="Fork src-openeuler repo into users, then clone to local", action="store_true") pars.add_argument("-b", "--build_pkg", help="Build package in local", action="store_true") - pars.add_argument("-pcpi", "--push_create_pr_issue", help="Push update repo, create PR and issue", action="store_true") + pars.add_argument("-pcpi", "--push_create_pr_issue", help="Push update repo, create PR and issue", + action="store_true") args = pars.parse_args() user_gitee = gitee.Gitee()