Bug 672473 - [abrt] fedpkg-0.5.2.0-2.fc14: __init__.py:1022:_findmasterbranch:IndexError: list index out of range
Summary: [abrt] fedpkg-0.5.2.0-2.fc14: __init__.py:1022:_findmasterbranch:IndexError: ...
Keywords:
Status: CLOSED DUPLICATE of bug 619979
Alias: None
Product: Fedora
Classification: Fedora
Component: fedora-packager
Version: 14
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Dennis Gilmore
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:4ddacfa6
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-25 08:58 UTC by Vít Ondruch
Modified: 2013-01-10 06:25 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-01-25 11:54:01 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (810 bytes, text/plain)
2011-01-25 08:58 UTC, Vít Ondruch
no flags Details

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.


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