upgrades-migrations / preupgrade-assistant

The Preupgrade Assistant performs an assessment of the system from the "upgradeability" point of view. Disclaimer: It was fun. R.I.P. :-)
GNU General Public License v3.0
13 stars 15 forks source link

ConfigParser fails during parsing of /etc/preupgrade-assistant.conf #73

Closed pirat89 closed 8 years ago

pirat89 commented 8 years ago

It's due to different style of section [home_directories], which is not really INI type.

Traceback (most recent call last):
  File "<some content>", line 8, in ?
    from preup.script_api import *
  File "/usr/lib/python2.4/site-packages/preup/script_api.py", line 544, in ?
    load_pa_configuration()
  File "/usr/lib/python2.4/site-packages/preup/script_api.py", line 508, in load_pa_configuration
    config.read(PREUPGRADE_CONFIG)
  File "/usr/lib64/python2.4/ConfigParser.py", line 267, in read
    self._read(fp, filename)
  File "/usr/lib64/python2.4/ConfigParser.py", line 490, in _read
    raise e
ConfigParser.ParsingError: File contains parsing errors: /etc/preupgrade-assistant.conf
    [line 12]: '.config/\n'
    [line 13]: '.mozilla/'
phracek commented 8 years ago

Yeah, I know. In order to support rhel-5 I suggest to use dirs=./config,./mozilla.

Separated by comma.

pirat89 commented 8 years ago

Resolved by commit 0ee1f11