> 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() ... >>> del b.repos >>> b.prerepoconf = yum._YumPreRepoConf() ... _______________________________________________ Yum-devel mailing list [email protected] http://lists.baseurl.org/mailman/listinfo/yum-devel
