diff options
Diffstat (limited to 'apt/auth.py')
| -rw-r--r-- | apt/auth.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt/auth.py b/apt/auth.py index 8663a043..024f01da 100644 --- a/apt/auth.py +++ b/apt/auth.py @@ -103,7 +103,7 @@ def add_key_from_file(filename, wait=True): """ if not os.path.abspath(filename): raise SystemError("An absolute path is required: %s" % filename) - if not os.access(os.R_OK): + if not os.access(filename, os.R_OK): raise SystemError("Key file cannot be accessed: %s" % filename) cmd = _get_gpg_command() cmd.extend(["--quiet", "--batch", "--import", filename]) |
