[Bug 1504893] Re: Config parser fails with inline comments

Brian Murray brian at ubuntu.com
Mon Oct 12 16:54:36 UTC 2015


The parsing of that configuration file is actually done by update-
manager and the relevant code is in UpdateManager/Core/MetaRelease.py.

This may be a bug in configparser itself.

** Package changed: ubuntu-release-upgrader (Ubuntu) => update-manager
(Ubuntu)

** Changed in: update-manager (Ubuntu)
   Importance: Undecided => Low

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to update-manager in Ubuntu.
https://bugs.launchpad.net/bugs/1504893

Title:
  Config parser fails with inline comments

Status in update-manager package in Ubuntu:
  New

Bug description:
  $ tail -1 /etc/update-manager/release-upgrades
  Prompt=never # Original value: Prompt=lts

  I'm using inline comments like the one above to mark the original values in files that I change in /etc.
  But in this case it's considered an invalid value, probably like:
  Prompt="never # Original value: Prompt=lts"

  From a programmer's side, maybe this can be explained with how ConfigParser inline comment parsing works by default in python etc.
  But from a user's side, I think this is an unexpected problem that should be resolved... :)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1504893/+subscriptions



More information about the foundations-bugs mailing list