Re: Scriptable way to edit yum .repo files?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Wed, Jan 7, 2009 at 19:11, Amos Shapira <amos.shapira@xxxxxxxxx> 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
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux