Re: [Yum-devel] [PATCH] Persistent enable/disable of repositories.

2007-07-06 Thread Tim Lauridsen
Debarshi 'Rishi' Ray wrote: It's a little concerning that there's only one release (0.1) and that was in 2004 and apparently nothing since. I wonder if it's worth sort of taking and building on within yum proper rather than adding the dependency. I posted an older link. The latest one is

Re: [Yum-devel] [PATCH] Persistent enable/disable of repositories.

2007-07-05 Thread Tim Lauridsen
seth vidal wrote: On Thu, 2007-07-05 at 03:04 +0530, Debarshi 'Rishi' Ray wrote: Please find attached a patch to incorporate the persistent enable/disable of repositories by editing the .repo files. Repositories mentioned in yum.conf are still not supported. This is done using the following

Re: [Yum-devel] [PATCH] Persistent enable/disable of repositories.

2007-07-05 Thread Debarshi 'Rishi' Ray
Sorry I did notice this before, but these problems in ConfigParser seem to be well discussed at http://wiki.python.org/moin/ConfigParserShootout I will try to cook something together there there fits into the current yum config code, so it can save stuff in the right place and order without

Re: [Yum-devel] [PATCH] Persistent enable/disable of repositories.

2007-07-05 Thread Debarshi 'Rishi' Ray
In any case I will re-write this using some other parsing module. Let me try. Done, using cfgparse (http://pages.cs.wisc.edu/~param/software/cfgparse/) which preserves the ordering of the options and the comments. Good thing is that cfgparse provides an additional interface backward compatible

Re: [Yum-devel] [PATCH] Persistent enable/disable of repositories.

2007-07-05 Thread Tim Lauridsen
Debarshi 'Rishi' Ray wrote: Sorry I did notice this before, but these problems in ConfigParser seem to be well discussed at http://wiki.python.org/moin/ConfigParserShootout I will try to cook something together there there fits into the current yum config code, so it can save stuff in the

Re: [Yum-devel] [PATCH] Persistent enable/disable of repositories.

2007-07-05 Thread Tim Lauridsen
Tim Lauridsen wrote: Debarshi 'Rishi' Ray wrote: In any case I will re-write this using some other parsing module. Let me try. Done, using cfgparse (http://pages.cs.wisc.edu/~param/software/cfgparse/) which preserves the ordering of the options and the comments. Good thing is that cfgparse

Re: [Yum-devel] [PATCH] Persistent enable/disable of repositories.

2007-07-05 Thread Debarshi 'Rishi' Ray
It's a little concerning that there's only one release (0.1) and that was in 2004 and apparently nothing since. I wonder if it's worth sort of taking and building on within yum proper rather than adding the dependency. http://cfgparse.sourceforge.net/ Mea culpa. I posted an older link. The

Re: [Yum-devel] [PATCH] Persistent enable/disable of repositories.

2007-07-05 Thread Jeremy Katz
On Thu, 2007-07-05 at 15:10 +0530, Debarshi 'Rishi' Ray wrote: In any case I will re-write this using some other parsing module. Let me try. Done, using cfgparse (http://pages.cs.wisc.edu/~param/software/cfgparse/) which preserves the ordering of the options and the comments. It's a

Re: [Yum-devel] [PATCH] Persistent enable/disable of repositories.

2007-07-05 Thread Jeremy Katz
On Wed, 2007-07-04 at 17:45 -0400, seth vidal wrote: On Thu, 2007-07-05 at 03:04 +0530, Debarshi 'Rishi' Ray wrote: Please find attached a patch to incorporate the persistent enable/disable of repositories by editing the .repo files. Repositories mentioned in yum.conf are still not

Re: [Yum-devel] [PATCH] Persistent enable/disable of repositories.

2007-07-05 Thread Debarshi 'Rishi' Ray
Pardon me if I did not understand what you said. Look fine, the only issue to solve is to keep track of of witch section (repos) is stored in witch .repo file, so if on repo is enabled/disabled, all other section was to written to the same file. in system-config-repo is use some dictionaries to

Re: [Yum-devel] [PATCH] Persistent enable/disable of repositories.

2007-07-05 Thread Debarshi 'Rishi' Ray
It's a little concerning that there's only one release (0.1) and that was in 2004 and apparently nothing since. I wonder if it's worth sort of taking and building on within yum proper rather than adding the dependency. I posted an older link. The latest one is above, and the latest

[Yum-devel] [PATCH] Persistent enable/disable of repositories.

2007-07-04 Thread Debarshi 'Rishi' Ray
Please find attached a patch to incorporate the persistent enable/disable of repositories by editing the .repo files. Repositories mentioned in yum.conf are still not supported. This is done using the following two methods: YumRepository.enablePersistent(self)

Re: [Yum-devel] [PATCH] Persistent enable/disable of repositories.

2007-07-04 Thread seth vidal
On Thu, 2007-07-05 at 03:04 +0530, Debarshi 'Rishi' Ray wrote: Please find attached a patch to incorporate the persistent enable/disable of repositories by editing the .repo files. Repositories mentioned in yum.conf are still not supported. This is done using the following two methods: