Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1357699 - rebase-helper fails with error AttributeError: 'NoneType' object has no attribute 'rfind'
Summary: rebase-helper fails with error AttributeError: 'NoneType' object has no attri...
Keywords:
Status: NEW
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: rebase-helper
Version: epel7
Hardware: x86_64
OS: Linux
high
high
Target Milestone: ---
Assignee: Petr Hracek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-07-19 00:01 UTC by Niranjan MR
Modified: 2016-07-19 00:02 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description Niranjan MR 2016-07-19 00:01:34 UTC
Description of problem:

When trying to use rebase-helper to update a fedora package (owl-lisp), it fails with following traceback



(reverse-i-search)`e': diff /usr/lib/python2.7/site-packages/rebasehelper/specfile.py /tmp/specfil^Cpy 
[mniranja@mniranja owl-lisp]$ rebase-helper 1.12
Results directory 'rebase-helper-results' exists, removing it
Traceback (most recent call last):
  File "/usr/bin/rebase-helper", line 9, in <module>
    load_entry_point('rebasehelper==0.7.3', 'console_scripts', 'rebase-helper')()
  File "/usr/lib/python2.7/site-packages/rebasehelper/cli.py", line 147, in run
    app = Application(cli)
  File "/usr/lib/python2.7/site-packages/rebasehelper/application.py", line 102, in __init__
    self._prepare_spec_objects()
  File "/usr/lib/python2.7/site-packages/rebasehelper/application.py", line 160, in _prepare_spec_objects
    download=not self.conf.not_download_sources)
  File "/usr/lib/python2.7/site-packages/rebasehelper/specfile.py", line 130, in __init__
    self._update_data()
  File "/usr/lib/python2.7/site-packages/rebasehelper/specfile.py", line 153, in _update_data
    self._get_raw_source_string(0))[1]
  File "/usr/lib/python2.7/site-packages/rebasehelper/specfile.py", line 954, in extract_version_from_archive_name
    url_base = os.path.basename(source_string).strip()
  File "/usr/lib64/python2.7/posixpath.py", line 121, in basename
    i = p.rfind('/') + 1
AttributeError: 'NoneType' object has no attribute 'rfind'

Version-Release number of selected component (if applicable):
rebase-helper-0.7.3-1.el7.noarch
RHEL7.1

How reproducible:


Steps to Reproduce:
1.install rebase-helper
2. Switch to the branch using fedpkg switch-branch <package>
3. run : rebase-helper <new-version>

Actual results:

rebase-helper fails with traceback

Expected results:

rebase-helper should succeed

Additional info:


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