Bug 672473

Summary: [abrt] fedpkg-0.5.2.0-2.fc14: __init__.py:1022:_findmasterbranch:IndexError: list index out of range
Product: [Fedora] Fedora Reporter: Vít Ondruch <vondruch>
Component: fedora-packagerAssignee: Dennis Gilmore <dennis>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 14CC: dcantrell, dennis
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:4ddacfa6
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-25 11:54:01 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 Vít Ondruch 2011-01-25 08:58:09 UTC
abrt version: 1.1.14
architecture: x86_64
cmdline: /usr/bin/python /usr/bin/fedpkg import /home/vondruch/fedora-packages/rubygem-regin/SRPMS/rubygem-regin-0.3.7-2.fc14.src.rpm
component: fedora-packager
executable: /usr/bin/fedpkg
kernel: 2.6.35.10-74.fc14.x86_64
package: fedpkg-0.5.2.0-2.fc14
reason: __init__.py:1022:_findmasterbranch:IndexError: list index out of range
release: Fedora release 14 (Laughlin)
time: 1295945791
uid: 501

backtrace
-----
__init__.py:1022:_findmasterbranch:IndexError: list index out of range

Traceback (most recent call last):
  File "/usr/bin/fedpkg", line 1250, in <module>
    args.command(args)
  File "/usr/bin/fedpkg", line 529, in import_srpm
    mymodule = pyfedpkg.PackageModule(args.path)
  File "/usr/lib/python2.7/site-packages/pyfedpkg/__init__.py", line 1077, in __init__
    self.distval = self._findmasterbranch()
  File "/usr/lib/python2.7/site-packages/pyfedpkg/__init__.py", line 1022, 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 0x23b6e60>
branchre: <_sre.SRE_Pattern object at 0x2309ea0>
ref: <git.RemoteReference "refs/remotes/origin/master">
fedoras: []
branch: 'master'

How to reproduce
-----
1. Clonning fresh repository: fedpkg clone -B rubygem-regin 
2. cd rubygem-regin/master/
3. fedpkg import /home/vondruch/fedora-packages/rubygem-regin/SRPMS/rubygem-regin-0.3.7-2.fc14.src.rpm

Comment 1 Vít Ondruch 2011-01-25 08:58:11 UTC
Created attachment 475125 [details]
File: backtrace

Comment 2 Vít Ondruch 2011-01-25 11:54:01 UTC

*** This bug has been marked as a duplicate of bug 619979 ***

Comment 3 Jesse Keating 2011-01-25 18:50:42 UTC
FYI, I created an F14 branch for rubygem-regin so that you should be able to get past this message.  Please pull and try again.