Hi Bill,
There's already a config option for not doing source rpms... it
perhaps
needs wired through some more. If you have issues with that option set,
please file a bug in bugzilla.
sources=false doesn't help. It is not used in this portion of the code
(see snippet below). I've created a bug entry :
https://bugzilla.redhat.com/show_bug.cgi?id=636697
----
src_hash = dict([(x['build_id'],x) for x in source.packages()])
excludearch = dict([(x['build_id'],'') for x in
source.packages()])
exclusivearch = excludearch.copy()
# Get excludearch/exclusivearch lists for noarch packages
for pkg in noarch.packages():
srcpkg = src_hash[pkg['build_id']] <<<<< it dies here
>>>>>
self.logger.debug("Checking %s for Exclude/ExclusiveArch" %
(nevra(pkg),))
fn = _get_reference(srcpkg, builds_hash)
# if build has no source rpm, check the binary
if fn == None:
fn = _get_reference(pkg, builds_hash)
try:
hdr = koji.get_rpm_header(fn)
except:
self.logger.error("Couldn't read header from %s (%s)" %
(nevra(pkg), fn))
if fn:
fn.close()
continue
excludearch[pkg['build_id']] = hdr['EXCLUDEARCH']
exclusivearch[pkg['build_id']] = hdr['EXCLUSIVEARCH']
fn.close()
-----
Cheers,
Thomas