~cmiller/desktopcouch/couchdb-polutes-its-ini

Viewing all changes in revision 128.

  • Committer: Chad Miller
  • Date: 2010-02-04 22:38:45 UTC
  • Revision ID: chad.miller@canonical.com-20100204223845-vuymueotivjwvqs3
We need to mutate the bookmarks file when couchdb starts, to add the port
number couchdb is listening on.  This means we have to know the password.

The only place that the password is guaranteed to be correct between runs
of desktopcouch, without having a new INI file generated and shiny-new, is
the bookmark file itself.  Why?  Couchdb may, at its bewildering discretion,
mutate its INI file so that the password is hashed and useless to us. 
Thus, we can't use the INI file as the source, and it's already in the
bookmarks file.

So, we need to parse the bookmarks file to get the info to update the
bookmarks file.  If we're going to do that already when updating the port,
we might as well use the same mechanism when fabricating a new password
when there is no INI file we can use.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: