diff options
author | Jesse Keating <jkeating@redhat.com> | 2008-02-08 16:58:08 -0500 |
---|---|---|
committer | Jesse Keating <jkeating@redhat.com> | 2008-02-08 16:58:08 -0500 |
commit | 33317125225d44f75485fd7603c5977482b5e96f (patch) | |
tree | bbe92ba0638042fe301eba435e9cb46427092289 | |
parent | ede4c31b652baf09904a93607a9ed5cba5eb5338 (diff) | |
download | releng-33317125225d44f75485fd7603c5977482b5e96f.tar.gz releng-33317125225d44f75485fd7603c5977482b5e96f.tar.xz releng-33317125225d44f75485fd7603c5977482b5e96f.zip |
Find imported noarch packages and punt them from the list
-rwxr-xr-x | scripts/need-rebuild-gcc43.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/need-rebuild-gcc43.py b/scripts/need-rebuild-gcc43.py index ffdb8b8..a1d9b9d 100755 --- a/scripts/need-rebuild-gcc43.py +++ b/scripts/need-rebuild-gcc43.py @@ -26,7 +26,11 @@ checknum = len(tocheck) for build in tocheck: print "Checking %s (%s of %s)" % (build['nvr'], tocheck.index(build)+1, checknum) if not build['task_id']: - needbuild.append(build) + rpms = kojisession.listRPMs(buildID=build['build_id']) + for rpm in rpms: + if rpm['arch'] != 'src' or rpm['arch'] != 'noarch': + needbuild.append(build) + continue continue for task in kojisession.getTaskChildren(build['task_id']): if build in needbuild: |