spacewalk-repo-sync errors with "local variable 'localpath' referenced before assignment"
Issue
We've added an external additional repository. But when we sync the repo, we receive the following error:
/usr/bin/python -u /usr/bin/spacewalk-repo-sync --channel rch-epel-packages-rhel6-master-x86_64 --type yum
1/7996 : wine-ms-sans-serif-fonts-1.4.1-1.el6-0.noarch
failure: wine-ms-sans-serif-fonts-1.4.1-1.el6.noarch.rpm from epel-packages-rhel6-master-x86_64: [Errno 256] No more mirrors to try.
Traceback (most recent call last):
File "/usr/bin/spacewalk-repo-sync", line 72, in ?
sys.exit(abs(main() or 0))
File "/usr/bin/spacewalk-repo-sync", line 66, in main
sync.main()
File "/usr/share/rhn/satellite_tools/reposync.py", line 103, in main
self.import_packages(plugin, url)
File "/usr/share/rhn/satellite_tools/reposync.py", line 192, in import_packages
finally_remove(localpath)
UnboundLocalError: local variable 'localpath' referenced before assignment
Environment
- Red Hat Network Satellite 5.4.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.