On Wed, Jan 11, 2012 at 09:28:20AM -0500, Zdenek Pavlas wrote: > > So, every time I get to the install packages method I'd like to make > > sure Yum knows about any repos that may have been potentially > > added...or taken away. > > Creating a new YumBase instance is the safest bet, > but you may also try the following. > > 'del b.repos' throw all repos away, and reinits > b._repos to an empty, uninitialized repo storage. > > 'b.prerepoconf' instructs the getter for self.repos > to run getReposFromConfig() and do some initialization. > > >>> import yum > >>> b = yum.YumBase()
Yeah, this works like a champ. > >>> del b.repos > >>> b.prerepoconf = yum._YumPreRepoConf() However, this does not. I get the familiar "No package(s) available to install" and "Problem in reinstall: no package foobar matched to install." So something isn't getting reloaded here. Jack -- Jack Neely <[email protected]> Linux Czar, OIT Campus Linux Services Office of Information Technology, NC State University GPG Fingerprint: 1917 5AC1 E828 9337 7AA4 EA6B 213B 765F 3B6A 5B89 _______________________________________________ Yum-devel mailing list [email protected] http://lists.baseurl.org/mailman/listinfo/yum-devel
