Debian Codegraph @

debian/patches/fhs-paths

raw symbols SCIP
1 Subject: adapt paths to FHS
2 Author: Marc Haber <[email protected]>
3 Forwarded: not-needed
4 --- a/journal_brief/config.py
5 +++ b/journal_brief/config.py
6 @@ -126,7 +126,7 @@ class Config(dict):
7 conf_filename = '{0}.conf'.format(PACKAGE)
8 config_file = os.path.join(CONFIG_DIR, conf_filename)
9
10 - default_config = {'cursor-file': 'cursor'}
11 + default_config = {'cursor-file': '/var/lib/journal-brief/cursor'}
12 config = load_config(config_file)
13
14 if not isinstance(config, dict):
15 --- a/journal_brief/constants.py
16 +++ b/journal_brief/constants.py
17 @@ -19,7 +19,7 @@ Copyright (c) 2015 Tim Waugh <tim@cybere
18 import os
19 from systemd import journal
20
21 -CONFIG_DIR = '{0}/.config/journal-brief'.format(os.path.expanduser('~'))
22 +CONFIG_DIR = '/etc/journal-brief'
23 PACKAGE = 'journal-brief'
24
25 PRIORITY_MAP = {}
26 --- a/tests/cli/test_main.py
27 +++ b/tests/cli/test_main.py
28 @@ -70,7 +70,7 @@ class TestCLI(object):
29 cli = CLI(args=['--conf', configfile.name])
30
31 # Default value
32 - assert cli.config.get('cursor_file') == 'cursor'
33 + assert cli.config.get('cursor_file') == '/var/lib/journal-brief/cursor'
34
35 # Specified in config
36 assert cli.config.get('priority') == 'err'