Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Fedora Build System (http://www.linux-archive.org/fedora-build-system/)
-   -   yumbase._getConfig() doesn't take any arguments, use yumbase.preconf to set yum up. (http://www.linux-archive.org/fedora-build-system/247162-yumbase-_getconfig-doesnt-take-any-arguments-use-yumbase-preconf-set-yum-up.html)

"Jeffrey C. Ollie" 02-17-2009 01:30 PM

yumbase._getConfig() doesn't take any arguments, use yumbase.preconf to set yum up.
 
Signed-off-by: Jeffrey C. Ollie <jeff@ocjtech.us>
---
builder/mergerepos | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/builder/mergerepos b/builder/mergerepos
index 4243444..defb8c1 100755
--- a/builder/mergerepos
+++ b/builder/mergerepos
@@ -95,7 +95,10 @@ class RepoMerge(object):
self.mdconf.verbose = True
self.mdconf.changelog_limit = 3
self.yumbase = yum.YumBase()
- self.yumbase._getConfig('/dev/null', init_plugins=False, debuglevel=2)
+ self.yumbase.preconf.fn = '/dev/null'
+ self.yumbase.preconf.init_plugins = False
+ self.yumbase.preconf.debuglevel = 2
+ self.yumbase._getConfig()
self.yumbase.conf.cachedir = tempfile.mkdtemp()
self.yumbase.conf.cache = 0
self.archlist = arches
--
1.6.0.6

--
Fedora-buildsys-list mailing list
Fedora-buildsys-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-buildsys-list


All times are GMT. The time now is 03:46 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.