commit 46493c046d27e5a6b8b136f0bd97e6664e240d8d Author: Till Maas opensource@till.name Date: Tue Sep 30 21:46:15 2014 +0200
check-lastest-build: Rename build to latest
Also simplify the output.
scripts/check-latest-build.py | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-) --- diff --git a/scripts/check-latest-build.py b/scripts/check-latest-build.py index 422ee0c..92a3db3 100755 --- a/scripts/check-latest-build.py +++ b/scripts/check-latest-build.py @@ -74,18 +74,17 @@ num = len(latest_builds) log.debug("latest builds=%d", num) log.debug(str(latest_builds))
-for build in latest_builds: - latest_evr = (str(build['epoch']), build['version'], build['release']) +for latest in latest_builds: + latest_evr = (str(latest['epoch']), latest['version'], latest['release']) if args.verbose is True: - print("pkg = %s" % build['package_name']) + print("pkg = %s" % latest['package_name'])
- builds = kojisession.listTagged(args.tag, package=build['package_name']) + builds = kojisession.listTagged(args.tag, package=latest['package_name']) for b in builds: evr = (str(b['epoch']), b['version'], b['release']) res = _rpmvercmp(latest_evr, evr) if res == -1: - print("\tlatest is %s, but higher exists - %s" % (build['nvr'], - b['nvr'])) + print("\t%s < %s" % (latest['nvr'], b['nvr'])) if args.fix is True: cmd = ["koji", "untag-build", args.tag, b['nvr']] print("running: " + " ".join(cmd))
rel-eng@lists.fedoraproject.org