borgbackup / borg
Showing 1 of 1 files from the diff.

@@ -61,15 +61,20 @@
Loading
61 61
62 62
def get_keys_dir():
63 63
    """Determine where to repository keys and cache"""
64 -
65 -
    keys_dir = os.environ.get('BORG_KEYS_DIR', os.path.join(get_config_dir(), 'keys'))
64 +
    keys_dir = os.environ.get('BORG_KEYS_DIR')
65 +
    if keys_dir is None:
66 +
        # note: do not just give this as default to the environment.get(), see issue #5979.
67 +
        keys_dir = os.path.join(get_config_dir(), 'keys')
66 68
    ensure_dir(keys_dir)
67 69
    return keys_dir
68 70
69 71
70 72
def get_security_dir(repository_id=None):
71 73
    """Determine where to store local security information."""
72 -
    security_dir = os.environ.get('BORG_SECURITY_DIR', os.path.join(get_config_dir(), 'security'))
74 +
    security_dir = os.environ.get('BORG_SECURITY_DIR')
75 +
    if security_dir is None:
76 +
        # note: do not just give this as default to the environment.get(), see issue #5979.
77 +
        security_dir = os.path.join(get_config_dir(), 'security')
73 78
    if repository_id:
74 79
        security_dir = os.path.join(security_dir, repository_id)
75 80
    ensure_dir(security_dir)
Files Coverage
src/borg 83.27%
Project Totals (38 files) 83.27%
1239282866
python=3.8
OS=Linux
1239282866
python=3.9
OS=Linux
1239282866
python=3.10-dev
OS=Linux
1239282866
python=3.7
OS=Linux
1239282866
python=3.7
OS=macOS

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading