Pungi fails within mock - 'AttributeError: prerepoconf'

Clint Savage herlo1 at gmail.com
Fri Mar 16 22:11:43 UTC 2012


On Fri, Mar 16, 2012 at 4:07 PM, Jesse Keating <jkeating at j2solutions.net> wrote:
> On 3/1/12 9:17 AM, Clint Savage wrote:
>>
>>     File "/usr/lib/python2.6/site-packages/pypungi/__init__.py", line
>> 166, in _inityum
>>     del self.ayum.prerepoconf
>>     AttributeError: prerepoconf
>>
>> A couple things to note:
>>
>> pungi was built by me from the latest that seemed to work with
>> something equivalent to CentOS6.0 on our koji server -
>>
>> pungi-2.0.22-1.gl6.noarch.
>>
>> Here are the mock and yum versions as well:
>>
>> mock-1.1.18-1.el6.noarch
>> yum-3.2.29-22.el6.centos.noarch
>>
>> I did have a look through the mock logs to no avail.
>>
>> Any thoughts?
>>
>> Anything else I can provide, please just let me know.
>
>
> That line was added to fix
> https://bugzilla.redhat.com/show_bug.cgi?id=609247
>
> This may not apply to RHEL6 though, what happens if you comment out the
> offending line in the pungi code?

Jesse,

I've actually done one better and put a try/except around it. Seems to
me that's a smarter thing to do anyway. It works fine that way, I just
didn't understand what 'self.ayum.prerepoconf' is or why it's there.
The pungi code is not completely understandable to me, this seems like
an appropriate fix, however. I'd be happy to send a patch up to pungi
if others thought it would be useful.

Cheers,

Clint

Clint


More information about the buildsys mailing list