summaryrefslogtreecommitdiff
path: root/aptsources/distro.py
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2010-02-13 17:03:33 +0100
committerJulian Andres Klode <jak@debian.org>2010-02-13 17:03:33 +0100
commit5d3142e5fb0d6d9389b5942ccca1d720262fb690 (patch)
tree733d5d9963d8092a7b3bbcf984fc520822a3b767 /aptsources/distro.py
parentdadba850a99f4ae87ac0a7a89b60bae849d76306 (diff)
downloadpython-apt-5d3142e5fb0d6d9389b5942ccca1d720262fb690.tar.gz
* aptsources/distro.py:
- Call lsb_release with -idrc instead of --all.
Diffstat (limited to 'aptsources/distro.py')
-rw-r--r--aptsources/distro.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/aptsources/distro.py b/aptsources/distro.py
index ff1bed89..1e60a0ed 100644
--- a/aptsources/distro.py
+++ b/aptsources/distro.py
@@ -438,14 +438,14 @@ class UbuntuDistribution(Distribution):
self, mirror_template="http://%s.archive.ubuntu.com/ubuntu/")
def _lsb_release():
- """Call lsb_release --all and return a mapping."""
+ """Call lsb_release --idrc and return a mapping."""
from subprocess import Popen, PIPE
import errno
result = {'Codename': 'sid', 'Distributor ID': 'Debian',
'Description': 'Debian GNU/Linux unstable (sid)',
'Release': 'unstable'}
try:
- out = Popen(['lsb_release', '--all'], stdout=PIPE).communicate()[0]
+ out = Popen(['lsb_release', '-idrc'], stdout=PIPE).communicate()[0]
# Convert to unicode string, needed for Python 3.1
out = out.decode("utf-8")
result.update(l.split(":\t") for l in out.split("\n") if ':\t' in l)