plague 0.4 config file formats...
Dan Williams
dcbw at redhat.com
Thu Oct 20 13:41:02 UTC 2005
On Wed, 2005-10-19 at 18:00 -0400, Chris Weyl wrote:
> =====================
> Exception in thread Thread-4:
> Traceback (most recent call last):
> File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap
> self.run()
> File "/usr/share/plague/server/PackageJob.py", line 82, in run
> self._pkg_job.process()
> File "/usr/share/plague/server/PackageJob.py", line 509, in process
> if func():
> File "/usr/share/plague/server/PackageJob.py", line 377, in _stage_prep
> (self.archjobs, pkg_arches, allowed_arches) = self.arch_handling(hdr)
> File "/usr/share/plague/server/PackageJob.py", line 185, in arch_handling
> addl_arches = self._target_cfg.addl_pkg_arches()[self.name]
> TypeError: list indices must be integers
> =====================
So I pushed new plague packages yesterday to fix this. If you want to
fix it right now, you can modify /usr/share/plague/server/Config.py as
such (in pseudo diff format, or course):
def addl_pkg_arches(self):
if not self._config.has_section("Additional Package Arches"):
- return []
+ return {}
items = self._config.items("Additional Package Arches")
ie, just change the [] -> {} and it should work there. Or add a
[Additional Package Arches] section to your target's config file. Or
update to latest plague RPMs.
Dan
More information about the Fedora-buildsys-list
mailing list