summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Heinlein <devel@glatzor.de>2012-06-06 12:20:33 +0200
committerSebastian Heinlein <devel@glatzor.de>2012-06-06 12:20:33 +0200
commitc1abd02805bf19dab6183b1f22900877fd62f1e8 (patch)
tree0d5b4cfe9885c63b23ff8b868bee7161920442bf
parent1b765003316443169b626874c50b98e0f91efb88 (diff)
downloadpython-apt-c1abd02805bf19dab6183b1f22900877fd62f1e8.tar.gz
Don't call fakeroot by default - this should be done by an alternate Dir::Bin::Apt-key script
-rw-r--r--apt/auth.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/apt/auth.py b/apt/auth.py
index 27365678..255d7fd4 100644
--- a/apt/auth.py
+++ b/apt/auth.py
@@ -52,8 +52,6 @@ def _call_apt_key_script(*args, **kwargs):
"""Run the apt-key script with the given arguments."""
cmd = [apt_pkg.config.find_file("Dir::Bin::Apt-Key", "/usr/bin/apt-key")]
cmd.extend(args)
- if os.getuid() != 0:
- cmd.insert(0, "fakeroot")
env = os.environ.copy()
env["LANG"] = "C"
if apt_pkg.config.find_dir("Dir") != "/":