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: Nikola Forró
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: 2020-11-05 13:06 UTC (History)
2 users (show)

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


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:

Comment 1 Fedora Admin XMLRPC Client 2020-02-12 17:14:59 UTC
This package has changed maintainer in the Fedora.
Reassigning to the new maintainer of this component.


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