diff options
| author | Sebastian Heinlein <devel@glatzor.de> | 2012-06-01 08:18:24 +0200 |
|---|---|---|
| committer | Sebastian Heinlein <devel@glatzor.de> | 2012-06-01 08:18:24 +0200 |
| commit | 18fa7a01ebb31f5bfa465bf191989eb060713248 (patch) | |
| tree | 440e0c6c3b676dab35782ff175a37d4e22a4cd5b | |
| parent | cc9c9e8e252b311439cec84a99d84707b84e619f (diff) | |
| download | python-apt-18fa7a01ebb31f5bfa465bf191989eb060713248.tar.gz | |
Small fix
| -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]) |
