Red Hat Bugzilla – Bug 769176
traceback when spacewalk-repo-sync synces package into incompatible arch channel
Last modified: 2012-05-09 08:25:38 EDT
Description of problem:
When you have channel with arch X and repo with packages of arch Y and you attempt to sync that repo to the channel, you obtain error message (good) and traceback (bad) and spacewalk-repo-sync ends on first error like this (bad).
Version-Release number of selected component (if applicable):
In both these versions:
Steps to Reproduce:
1. Have repo "myrepo" with x86_64 packages configured on satellite
2. Assign that repo to channel "myrepo-channel"
3. Run the sync:
# spacewalk-repo-sync -c myrepo-channel
Repo http://<fqdn>/pub/myrepo/ has 3 packages.
1/3 : libreoffice-langpack-el-220.127.116.11-11.fc16-1.x86_64
Package arch x86_64 incompatible with channel myrepo-channel
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
File "/usr/share/rhn/satellite_tools/reposync.py", line 103, in main
File "/usr/share/rhn/satellite_tools/reposync.py", line 192, in import_packages
UnboundLocalError: local variable 'localpath' referenced before assignment
Error message should be shown but s-r-c should try to sync next package.
It's already been fixed in Spacewalk, see bug 679109.
Adding to errata https://errata.devel.redhat.com/errata/stateview/13014.
Cherry picked to SATELLITE-5.4, 8a6d81d32d501df84f7098d84683a916731fcb74.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.