[CentOS] Scriptable way to edit yum .repo files?
Filipe Brandenburger
filbranden at gmail.comThu Jan 8 01:45:31 UTC 2009
- Previous message: [CentOS] Scriptable way to edit yum .repo files?
- Next message: [CentOS] Scriptable way to edit yum .repo files?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, Jan 7, 2009 at 19:11, Amos Shapira <amos.shapira at gmail.com> wrote: > I found Perl's Conf::INI module but it expects comments beginning with > ";", not "#". Why don't you use Python's ConfigParser? That's what yum itself actually uses (AFAIK). http://docs.python.org/library/configparser.html With that module, you can read a file, modify the objects, and then write it to a new file. HTH, Filipe
- Previous message: [CentOS] Scriptable way to edit yum .repo files?
- Next message: [CentOS] Scriptable way to edit yum .repo files?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list