On Tue, Nov 09, 2010 at 03:31:19PM -0500, Yungwei Chen wrote:
> Hi,
>
> I noticed that CESA-2010:0679 doesn't show up as an erratum in spacewalk web
> UI, and the problem seems to come from centos-errata.py, which shows the
> following error.
>
> Downloading package data for CESA-2010:0679
> Failed to process message. Reason: 'NoneType' object has no attribute 'group'
> Traceback (most recent call last):
> File "./centos-errata.py", line 856, in process_mailarchive_msg
> if not
> errata_prepare_packagelist(session,options,erratum,extra_info['package_dir'],message_src)
> is None:
> File "./centos-errata.py", line 769, in errata_prepare_packagelist
> pkg_info =
> search_spacewalk_server(session,options,pkg_filename,pkg_checksum)
> File "./centos-errata.py", line 912, in search_spacewalk_server
> pkg_name = pkg_name_matched.group('pkg_name')
> AttributeError: 'NoneType' object has no attribute 'group'
> Downloading RHN data for CESA-2010:0679
> Downloading package data for CESA-2010:0679
> Failed to process message. Reason: 'NoneType' object has no attribute 'group'
> Traceback (most recent call last):
> File "./centos-errata.py", line 856, in process_mailarchive_msg
> if not
> errata_prepare_packagelist(session,options,erratum,extra_info['package_dir'],message_src)
> is None:
> File "./centos-errata.py", line 769, in errata_prepare_packagelist
> pkg_info =
> search_spacewalk_server(session,options,pkg_filename,pkg_checksum)
> File "./centos-errata.py", line 912, in search_spacewalk_server
> pkg_name = pkg_name_matched.group('pkg_name')
> AttributeError: 'NoneType' object has no attribute 'group'
Looks like the PACKAGE_NAMEONLY regex isn't matching, possibly due to
the data it gets from mailarchive.com not being quite what the script
expects.
I should really check that the regex matches before trying to extract
the matchgroup.
See what's in pkg_filename variable at that point to find out what's
causing the script to choke.
Regards,
--
David Nutter Tel: +44 (0)131 650 4888
BioSS, JCMB, King's Buildings, Mayfield Rd, EH9 3JZ. Scotland, UK
Biomathematics and Statistics Scotland (BioSS) is formally part of The
Scottish Crop Research Institute (SCRI), a registered Scottish charity
No. SC006662
_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list