package mnemosyne-blog tags 515882 + patch thanks On 18-Feb-2009, Ben Finney wrote: > This unrelated package, ‘mnemosyne-blog’, should not default to > using the same user configuration directory on Debian. Perhaps the > directory name ‘$HOME/.mnemosyne-blog/’ would be sensible.
The attached patch, against ‘mnemosyne-blog’ version 0.11-2, makes this change. -- \ “What is it that makes a complete stranger dive into an icy | `\ river to save a solid gold baby? Maybe we'll never know.” —Jack | _o__) Handey | Ben Finney <b...@benfinney.id.au>
=== modified file 'README' --- README 2009-02-18 06:19:50 +0000 +++ README 2009-02-18 06:25:30 +0000 @@ -32,7 +32,7 @@ A Mnemosyne blog starts with a configuration file, which is a Python script. The example provided in ``examples/simple/config.py`` explains what it can do and what variables can be set. By default, Mnemosyne -looks for this file in ``~/.mnemosyne/config.py``. +looks for this file in ``~/.mnemosyne-blog/config.py``. Usage ===== === modified file 'contrib/procmailrc.example' --- contrib/procmailrc.example 2009-02-18 06:19:50 +0000 +++ contrib/procmailrc.example 2009-02-18 06:24:34 +0000 @@ -4,6 +4,9 @@ # succeeds, the message is copied to the entry_dir and then delivered to # automnemosyne. If it fails, the message is sent to /dev/null. +# User directory for Mnemosyne +MNEMOSYNE_DIR=$HOME/.mnemosyne-blog + :0 * ^to_b...@example.invalid { @@ -13,10 +16,10 @@ :0a { :0c - $HOME/.mnemosyne/entries/ + $MNEMOSYNE_DIR/entries/ :0 - | automnemosyne >>$HOME/.mnemosyne/automnemosyne.log + | automnemosyne >>$MNEMOSYNE_DIR/automnemosyne.log } :0E === modified file 'debian/mnemosyne-blog.1' --- debian/mnemosyne-blog.1 2009-02-18 06:19:50 +0000 +++ debian/mnemosyne-blog.1 2009-02-18 06:25:49 +0000 @@ -14,7 +14,7 @@ a Maildir. The locations of each are read from the specified .IR CONFIG . If no configuration is specified, -.I ~/.mnemosyne/config.py +.I ~/.mnemosyne-blog/config.py is used by default. .SH OPTIONS .TP === modified file 'examples/simple/config.py' --- examples/simple/config.py 2009-02-18 06:19:50 +0000 +++ examples/simple/config.py 2009-02-18 06:25:49 +0000 @@ -15,7 +15,7 @@ # * ``output_dir``: location where we will write the generated pages. # # All these directories must already exist. They default to the following -# subdirectories of ~/.mnemosyne: +# subdirectories of ~/.mnemosyne-blog/: entry_dir = get_conf('entries') layout_dir = get_conf('layout') === modified file 'lib/mnemosyne/__init__.py' --- lib/mnemosyne/__init__.py 2009-02-18 06:19:50 +0000 +++ lib/mnemosyne/__init__.py 2009-02-18 06:25:19 +0000 @@ -10,7 +10,7 @@ __all__ = ['muse', 'entry'] def get_conf(s): - return os.path.expanduser('~/.mnemosyne/%s' % s) + return os.path.expanduser('~/.mnemosyne-blog/%s' % s) def cook(obj, rep): """Create an object exactly like obj, except its repr() is rep. This will === modified file 'lib/mnemosyne_blog/__init__.py' --- lib/mnemosyne_blog/__init__.py 2009-02-18 06:19:50 +0000 +++ lib/mnemosyne_blog/__init__.py 2009-02-18 06:25:07 +0000 @@ -10,7 +10,7 @@ __all__ = ['muse', 'entry'] def get_conf(s): - return os.path.expanduser('~/.mnemosyne/%s' % s) + return os.path.expanduser('~/.mnemosyne-blog/%s' % s) def cook(obj, rep): """Create an object exactly like obj, except its repr() is rep. This will
signature.asc
Description: Digital signature