Bug 465653 - setupYumConfig() in cli.py ignores arg list passed in to yummain
Summary: setupYumConfig() in cli.py ignores arg list passed in to yummain
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: rawhide
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Seth Vidal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-10-05 07:27 UTC by David Cantrell
Modified: 2014-01-21 23:06 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-10-17 19:24:48 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
yum-3.2.19-yummain-args.patch (1001 bytes, patch)
2008-10-05 07:27 UTC, David Cantrell
no flags Details | Diff

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.


Note You need to log in before you can comment on or make changes to this bug.