Description of problem: I try to sync custom channel and spacewalk-repo-sync doesn't work. It looks that problem is import debfile in rhnPackageUpload. >> spacewalk-repo-sync -h Traceback (most recent call last): File "/usr/bin/spacewalk-repo-sync", line 48, in <module> "Path not correct? " + sys.path) TypeError: cannot concatenate 'str' and 'list' objects > /usr/bin/spacewalk-repo-sync(44)<module>() -> from spacewalk.satellite_tools import reposync (Pdb) n ImportError: 'No module named debfile' > /usr/bin/spacewalk-repo-sync(44)<module>() -> from spacewalk.server import rhnPackageUpload (Pdb) n ImportError: 'No module named debfile' Version-Release number of selected component (if applicable): spacewalk-backend-tools-2.5.3-73.el6sat.noarch How reproducible: always Steps to Reproduce: 1. spacewalk-repo-sync -h
This is not valid code: except ImportError: systemExit(1, "Unable to find code tree.\n" "Path not correct? " + sys.path) # python Python 2.6.6 (r266:84292, Aug 9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> "string" + [] Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: cannot concatenate 'str' and 'list' objects
spacewalk.git(master): 0bda984c26a894af540708908b4da9a123293458
Verified in spacewalk-backend-tools-2.5.3-130.el6sat.noarch