Bug 620588

Summary: [abrt] crash in fedora-packager-0.5.1.0-1.fc12: __init__.py:694:_findmasterbranch:IndexError: list index out of range
Product: [Fedora] Fedora Reporter: Paul Wouters <pwouters>
Component: fedora-packagerAssignee: Dennis Gilmore <dennis>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: dcantrell, dennis
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: abrt_hash:35e247d9
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-08-02 22:51:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace none

Description Paul Wouters 2010-08-02 22:35:00 UTC
abrt 1.1.1 detected a crash.

architecture: x86_64
cmdline: /usr/bin/python /usr/bin/fedpkg commit
component: fedora-packager
executable: /usr/bin/fedpkg
kernel: 2.6.32.16-141.fc12.x86_64
package: fedora-packager-0.5.1.0-1.fc12
reason: __init__.py:694:_findmasterbranch:IndexError: list index out of range
release: Fedora release 12 (Constantine)

backtrace
-----
__init__.py:694:_findmasterbranch: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 416, in commit
    mymodule = pyfedpkg.PackageModule(args.path)
  File "/usr/lib/python2.6/site-packages/pyfedpkg/__init__.py", line 744, in __init__
    self.distval = self._findmasterbranch()
  File "/usr/lib/python2.6/site-packages/pyfedpkg/__init__.py", line 694, in _findmasterbranch
    return(int(fedoras[-1].strip('f')) + 1)
IndexError: list index out of range

Local variables in innermost frame:
self: <pyfedpkg.PackageModule instance at 0x2178830>
branchre: <_sre.SRE_Pattern object at 0x2179030>
ref: <git.TagReference "refs/tags/nsd-3_2_4-1_fc13">
fedoras: []
branch: 'master'

Comment 1 Paul Wouters 2010-08-02 22:35:03 UTC
Created attachment 436148 [details]
File: backtrace

Comment 2 Paul Wouters 2010-08-02 22:51:36 UTC
This was due to me using the staging repo instead of the proper production repo.