Created attachment 319489 [details] yum-3.2.19-yummain-args.patch setupYumConfig() does not take in a list of arguments that are initially handed to yummain. When parse_args() is called, it resorts to sys.argv, which is fine when yummain is called from /usr/bin/yum, but fails if you are importing yummain in to another program. The attached patch fixes the issue. I tried to clone upstream yum, but that was fail: error: Unable to find 99e37a9927b0581285a2e981f94c881729ff2aa0 under http://yum.baseurl.org/git/yum.git Cannot obtain needed object 99e37a9927b0581285a2e981f94c881729ff2aa0 while processing commit 00ca7c531840c75958e6c87b249562efce74ea9a. fatal: Fetch failed. So I'm opening the bug here.
it'll get into the next refresh that's done for Fedora 10, 3.2.19-6 or later.