Bug 465653

Summary: setupYumConfig() in cli.py ignores arg list passed in to yummain
Product: [Fedora] Fedora Reporter: David Cantrell <dcantrell>
Component: yumAssignee: Seth Vidal <skvidal>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: rawhideCC: ffesti, james.antill, katzj, pmatilai, tim.lauridsen
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-10-17 19:24:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
yum-3.2.19-yummain-args.patch none

Description David Cantrell 2008-10-05 07:27:28 UTC
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.

Comment 1 James Antill 2008-10-17 19:24:48 UTC
 it'll get into the next refresh that's done for Fedora 10, 3.2.19-6 or later.