Bug 620648 - [abrt] crash in fedora-packager-0.5.1.0-1.fc13: __init__.py:996:getver:IndexError: list index out of range
Summary: [abrt] crash in fedora-packager-0.5.1.0-1.fc13: __init__.py:996:getver:IndexE...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: fedora-packager
Version: 13
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: David Cantrell
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:f89e4471
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-08-03 07:53 UTC by Pierre-YvesChibon
Modified: 2013-01-10 06:07 UTC (History)
5 users (show)

Fixed In Version: fedora-packager-0.5.1.2-2.fc14
Clone Of:
Environment:
Last Closed: 2010-08-17 05:36:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.02 KB, text/plain)
2010-08-03 07:53 UTC, Pierre-YvesChibon
no flags Details

Description Pierre-YvesChibon 2010-08-03 07:53:51 UTC
abrt 1.1.1 detected a crash.

architecture: x86_64
cmdline: /usr/bin/python /usr/bin/fedpkg push
component: fedora-packager
executable: /usr/bin/fedpkg
kernel: 2.6.33.6-147.fc13.x86_64
package: fedora-packager-0.5.1.0-1.fc13
reason: __init__.py:996:getver:IndexError: list index out of range
release: Fedora release 13 (Goddard)

backtrace
-----
__init__.py:996:getver:IndexError: list index out of range

Traceback (most recent call last):
  File "/usr/bin/fedpkg", line 959, in <module>
    args.command(args)
  File "/usr/bin/fedpkg", line 563, in push
    mymodule = pyfedpkg.PackageModule(args.path)
  File "/usr/lib/python2.6/site-packages/pyfedpkg/__init__.py", line 757, in __init__
    self.ver = self.getver()
  File "/usr/lib/python2.6/site-packages/pyfedpkg/__init__.py", line 996, in getver
    return output[0].split()[0]
IndexError: list index out of range

Local variables in innermost frame:
output: ('', None)
self: <pyfedpkg.PackageModule instance at 0x1162560>
cmd: ['rpm', "--define '_sourcedir /home/pierrey/GIT/R2spec'", "--define '_specdir /home/pierrey/GIT/R2spec'", "--define '_builddir /home/pierrey/GIT/R2spec'", "--define '_srcrpmdir /home/pierrey/GIT/R2spec'", "--define '_rpmdir /home/pierrey/GIT/R2spec'", "--define 'dist .el4'", "--define 'epel 4'", "--define 'epel 1'", '-q', '--qf', '"%{VERSION} "', '--specfile', '/home/pierrey/GIT/R2spec/R2spec.spec']

comment
-----
I tried to update the el4 branch using git cherry-pick.
For Fedora branches right after the git cherry-pick I was able to push, here not.

How to reproduce
-----
1.fedpkg switch-branch el4
2.git cherry-pick master
3.fedpkg push

Comment 1 Pierre-YvesChibon 2010-08-03 07:53:53 UTC
Created attachment 436201 [details]
File: backtrace

Comment 2 Adam Huffman 2010-08-05 11:45:46 UTC
Package: fedora-packager-0.5.1.0-1.fc12
Architecture: x86_64
OS Release: Fedora release 12 (Constantine)


How to reproduce
-----
1. 
2.
3.


Comment
-----
Trying to merge changes from master to f13 branch - may have done it wrongly - I'm not quite able to follow the documentation

Comment 3 Jesse Keating 2010-08-06 19:30:13 UTC
Looks like fedpkg is having a hard time reading the spec file to determine version and release information.  Can you post the specfile somewhere?

Comment 4 Pierre-YvesChibon 2010-08-06 22:10:38 UTC
It is the one now in the GIT, but it might have been due to a conflicting merge or something like this.

Comment 5 Bernard Johnson 2010-08-09 05:33:33 UTC
Package: fedora-packager-0.5.1.0-1.fc13
Architecture: x86_64
OS Release: Fedora release 13 (Goddard)


How to reproduce
-----
1. fedpkg switch-branch master
2.
3.

Comment 6 Jesse Keating 2010-08-12 06:22:10 UTC
Regardless we should catch this error.

Comment 7 Jesse Keating 2010-08-12 06:56:43 UTC
Error trapped now.

Comment 8 Pierre-YvesChibon 2010-08-12 07:02:14 UTC
I am able to reproduce the bug:

- Clone a git repo
- Edit the spec file to have:
=====>
Version:        3.0.3
<=====
Version:        3.0.3
=====
(as if the merge conflicted)

- Run fedpkg push

Comment 9 Jiri Moskovcak 2010-08-12 11:16:14 UTC
I have the same error caused probably by wrong version in changelog:

error: %changelog not in descending chronological order
error: query of specfile /home/jmoskovc/redhat/Packages/Fedora/git/abrt/abrt.spec failed, can't parse
Traceback (most recent call last):
  File "/usr/bin/fedpkg", line 959, in <module>
    args.command(args)
  File "/usr/bin/fedpkg", line 506, in local
    mymodule = pyfedpkg.PackageModule(args.path)
  File "/usr/lib/python2.6/site-packages/pyfedpkg/__init__.py", line 757, in __init__
    self.ver = self.getver()
  File "/usr/lib/python2.6/site-packages/pyfedpkg/__init__.py", line 996, in getver
    return output[0].split()[0]
IndexError: list index out of range

btw, would it be possible, to show the line number, where the changelog is wrong?

Comment 10 Jesse Keating 2010-08-12 17:37:28 UTC
(In reply to comment #9)
> I have the same error caused probably by wrong version in changelog:
> 
> error: %changelog not in descending chronological order
> error: query of specfile
> /home/jmoskovc/redhat/Packages/Fedora/git/abrt/abrt.spec failed, can't parse
> Traceback (most recent call last):
>   File "/usr/bin/fedpkg", line 959, in <module>
>     args.command(args)
>   File "/usr/bin/fedpkg", line 506, in local
>     mymodule = pyfedpkg.PackageModule(args.path)
>   File "/usr/lib/python2.6/site-packages/pyfedpkg/__init__.py", line 757, in
> __init__
>     self.ver = self.getver()
>   File "/usr/lib/python2.6/site-packages/pyfedpkg/__init__.py", line 996, in
> getver
>     return output[0].split()[0]
> IndexError: list index out of range
> 
> btw, would it be possible, to show the line number, where the changelog is
> wrong?    

That would have to come out of rpm, not fedpkg.  File an RFE with them?

Comment 11 Fedora Update System 2010-08-12 19:53:21 UTC
python-kitchen-0.2-0.1.a2.el5,fedora-packager-0.5.1.2-1.el5 has been submitted as an update for Fedora EPEL 5.
http://admin.fedoraproject.org/updates/python-kitchen-0.2-0.1.a2.el5,fedora-packager-0.5.1.2-1.el5

Comment 12 Fedora Update System 2010-08-12 19:56:58 UTC
fedora-packager-0.5.1.2-1.fc14 has been submitted as an update for Fedora 14.
http://admin.fedoraproject.org/updates/fedora-packager-0.5.1.2-1.fc14

Comment 13 Fedora Update System 2010-08-12 20:01:26 UTC
fedora-packager-0.5.1.2-1.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/fedora-packager-0.5.1.2-1.fc13

Comment 14 Fedora Update System 2010-08-12 20:07:21 UTC
fedora-packager-0.5.1.2-1.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/fedora-packager-0.5.1.2-1.fc12

Comment 15 Fedora Update System 2010-08-13 21:06:18 UTC
fedora-packager-0.5.1.2-2.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update fedora-packager'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/fedora-packager-0.5.1.2-2.fc13

Comment 16 Fedora Update System 2010-08-13 22:38:56 UTC
fedora-packager-0.5.1.2-2.el5, python-kitchen-0.2-0.1.a2.el5 has been pushed to the Fedora EPEL 5 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update fedora-packager python-kitchen'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/python-kitchen-0.2-0.1.a2.el5,fedora-packager-0.5.1.2-2.el5

Comment 17 Fedora Update System 2010-08-17 05:35:50 UTC
fedora-packager-0.5.1.2-2.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 18 Fedora Update System 2010-08-24 21:09:06 UTC
fedora-packager-0.5.1.2-2.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 19 Fedora Update System 2010-08-24 23:03:32 UTC
fedora-packager-0.5.1.2-2.el5, python-kitchen-0.2-0.1.a2.el5 has been pushed to the Fedora EPEL 5 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 20 Fedora Update System 2010-08-25 01:19:17 UTC
fedora-packager-0.5.1.2-2.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.