Bug 1357699

Summary: rebase-helper fails with error AttributeError: 'NoneType' object has no attribute 'rfind'
Product: [Fedora] Fedora EPEL Reporter: Niranjan MR <niranjan>
Component: rebase-helperAssignee: Nikola Forró <nforro>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: epel7CC: nforro, phracek
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.