summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Heinlein <devel@glatzor.de>2012-06-01 08:18:24 +0200
committerSebastian Heinlein <devel@glatzor.de>2012-06-01 08:18:24 +0200
commit18fa7a01ebb31f5bfa465bf191989eb060713248 (patch)
tree440e0c6c3b676dab35782ff175a37d4e22a4cd5b
parentcc9c9e8e252b311439cec84a99d84707b84e619f (diff)
downloadpython-apt-18fa7a01ebb31f5bfa465bf191989eb060713248.tar.gz
Small fix
-rw-r--r--apt/auth.py2
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])