Bug 757351

Summary: [abrt] fedora-review-0.1.1-1.fc16: transaction.py:35:parseSpec:ValueError: can't parse specfile
Product: [Fedora] Fedora Reporter: Michael S. <misc>
Component: fedora-reviewAssignee: Stanislav Ochotnicky <sochotni>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: leamas.alec, pingou, sochotni
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:cad9380ce53de7ff4ebcff724c2cfd5f9f4206da
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-07-14 21:54:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Michael S. 2011-11-26 16:21:49 UTC
libreport version: 2.0.7
abrt_version:   2.0.6
cmdline:        /usr/bin/python -tt /usr/bin/fedora-review -b 662951
comment:        tried to review a package with a wrong url ( see command line )
executable:     /usr/bin/fedora-review
kernel:         3.1.2-1.fc16.x86_64
reason:         transaction.py:35:parseSpec:ValueError: can't parse specfile
time:           sam. 26 nov. 2011 16:48:48 CET
uid:            500
username:       misc

backtrace:
:transaction.py:35:parseSpec:ValueError: can't parse specfile
:
:
:Traceback (most recent call last):
:  File "/usr/bin/fedora-review", line 202, in <module>
:    review.run()
:  File "/usr/bin/fedora-review", line 196, in run
:    self.__do_report()
:  File "/usr/bin/fedora-review", line 110, in __do_report
:    self.__do_report_local(self.args.workdir)
:  File "/usr/bin/fedora-review", line 119, in __do_report_local
:    self.__run_checks(files_spec[0], files_srpm[0])
:  File "/usr/bin/fedora-review", line 153, in __run_checks
:    mock_config=self.args.mock_config)
:  File "/usr/lib/python2.7/site-packages/FedoraReview/misc.py", line 56, in __init__
:    self.spec = SpecFile(spec_file)
:  File "/usr/lib/python2.7/site-packages/FedoraReview/__init__.py", line 490, in __init__
:    self.spec_obj = ts.parseSpec(self.filename)
:  File "/usr/lib64/python2.7/site-packages/rpm/transaction.py", line 35, in parseSpec
:    return _rpmb.spec(specfile)
:ValueError: can't parse specfile
:
:
:Local variables in innermost frame:
:_rpmb: <module 'rpm._rpmb' from '/usr/lib64/python2.7/site-packages/rpm/_rpmbmodule.so'>
:self: <rpm.transaction.TransactionSet object at 0x271bce8>
:specfile: './662951/perl_checker.spec'

Comment 1 Stanislav Ochotnicky 2011-11-28 09:52:14 UTC
Indeed this was caused by a wong url in the review. Unfortunately handling for such corner cases is not exactly great at the moment, but good news is:
 1. We know where is the problem
 2. We know how to fix it

Fix will probably appear in the next version. Thanks for bugreport

Comment 3 Fedora Update System 2012-07-11 16:40:36 UTC
fedora-review-0.2.0-1.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/fedora-review-0.2.0-1.fc16

Comment 4 Fedora Update System 2012-07-11 16:41:05 UTC
fedora-review-0.2.0-1.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/fedora-review-0.2.0-1.fc17

Comment 5 Fedora Update System 2012-07-11 23:49:31 UTC
Package fedora-review-0.2.0-1.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing fedora-review-0.2.0-1.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-10509/fedora-review-0.2.0-1.fc16
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2012-07-14 21:54:11 UTC
fedora-review-0.2.0-1.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2012-07-28 01:19:27 UTC
fedora-review-0.2.0-1.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.