Re: ow to update a minimal local repo

seth vidal <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <1216312992.11915.9.camel@rosebud>
On Wed, 2008-07-16 at 02:06 +0300, Muayyad AlSadi wrote:
> the attached file is my trial,
> 
> I need to know how to populate the Sack after enableing/disabling some repos
> and where should repos.close() be put

changes below:
# return to default repos
for repo in my.repos.listEnabled():
    repo.sack.close()
    repo.close()

my.repos.disableRepo('*')
for i in repos_id: my.repos.enableRepo(i);

my.repos.disableRepo('local*')


Try that.


-sv
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.