diff options
| author | Julian Andres Klode <jak@debian.org> | 2010-02-13 17:03:33 +0100 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2010-02-13 17:03:33 +0100 |
| commit | 5d3142e5fb0d6d9389b5942ccca1d720262fb690 (patch) | |
| tree | 733d5d9963d8092a7b3bbcf984fc520822a3b767 | |
| parent | dadba850a99f4ae87ac0a7a89b60bae849d76306 (diff) | |
| download | python-apt-5d3142e5fb0d6d9389b5942ccca1d720262fb690.tar.gz | |
* aptsources/distro.py:
- Call lsb_release with -idrc instead of --all.
| -rw-r--r-- | aptsources/distro.py | 4 | ||||
| -rw-r--r-- | debian/changelog | 2 |
2 files changed, 4 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) diff --git a/debian/changelog b/debian/changelog index 57a42c60..e076d029 100644 --- a/debian/changelog +++ b/debian/changelog @@ -11,6 +11,8 @@ python-apt (0.7.93.2) UNRELEASED; urgency=low - Implement the iterator protocol in TagFile. * data/templates/Debian.info.in: - Replace the MatchURI with one that really matches something. + * aptsources/distro.py: + - Call lsb_release with -idrc instead of --all. * tests: - Fix aptsources tests to use local data files if available. |
