Description of problem: updating a repo: sudo reposync -r openclient/17/x86_64 Version-Release number of selected component: yum-utils-1.1.31-4.fc17 Additional info: cmdline: /usr/bin/python -tt /usr/bin/reposync -r openclient/17/x86_64 executable: /usr/bin/reposync kernel: 3.6.8-2.fc17.x86_64 uid: 1000 Truncated backtrace: reposync:349:main:UnboundLocalError: local variable 'exit_code' referenced before assignment Traceback (most recent call last): File "/usr/bin/reposync", line 352, in <module> main() File "/usr/bin/reposync", line 349, in main sys.exit(exit_code) UnboundLocalError: local variable 'exit_code' referenced before assignment Local variables in innermost frame: junk: [] glob: 'openclient/17/x86_64' repo: <yum.yumRepo.YumRepository object at 0x1c08990> arches: ['ia32e', 'x86_64', 'athlon', 'i686', 'i586', 'i486', 'i386', 'noarch'] cachedir: '/var/tmp/yum-smanocch-yxFl30' myrepos: [] my: <__main__.RepoSync object at 0x151e250> opts: <Values at 0x1c001b8: {'newest': False, 'downloadcomps': False, 'quiet': False, 'destdir': '/home/smanocch', 'source': False, 'cachedir': None, 'tempcache': True, 'urls': False, 'plugins': False, 'gpgcheck': False, 'downloadmd': False, 'norepopath': False, 'config': '/etc/yum.conf', 'arch': None, 'repoid': ['openclient/17/x86_64'], 'delete': False}>
Created attachment 655677 [details] File: backtrace
Created attachment 655678 [details] File: core_backtrace
Created attachment 655679 [details] File: environ
Created attachment 655680 [details] File: smolt_data
Thanks for the report! Fixed in head.
yum-utils-1.1.31-7.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/yum-utils-1.1.31-7.fc18
Package yum-utils-1.1.31-7.fc18: * should fix your issue, * was pushed to the Fedora 18 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing yum-utils-1.1.31-7.fc18' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-1128/yum-utils-1.1.31-7.fc18 then log in and leave karma (feedback).
yum-utils-1.1.31-7.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.
Where can I find the diff/patch of this fix so I could apply it to the rhel6 version of reposync (yum-utils-1.1.30-14.el6.noarch)?
http://yum.baseurl.org/gitweb?p=yum-utils.git;a=commitdiff;h=6d3a95c63f3f000
thanks!