Updating macports.conf

Rainer Müller raimue at macports.org
Fri Feb 15 18:01:55 PST 2008


Hello,

Currently on selfupdate macports.conf is not updated in any way if it
already existed. This "hides" new options from long time users.
An up-to-date macports.conf provides a good overview over all options 
and contains short documentation lines.

I have two proposals how this could be changed to make it more easy for
users to follow HOWTOs and/or tutorials.

1) Add macports.conf.dist
    Place a file named macports.conf.dist right beside macports.conf. It
    would be the same file as the install process would have generated if
    no macports.conf file exists. Then the user can copy & paste new
    options over to macports.conf.

    Advantages:    * Easy to implement
    Disadvantages: * User still has to do it him/herself.

2) Parse macports.conf and regenerate it
    Parse the existing macports.conf and rewrite it completely. This
    takes takes all options already present and writes a new
    macports.conf (by also keeping a backup).

    Advantages:    * macports.conf is always up-to-date
                   * Does not require work by user
    Disadvantages: * More work to implement this.
                   * Users will loose their formatting or comments, if
                     they customized it.

Any comments on this appreciated.

Rainer


More information about the macports-dev mailing list