diff options
| author | glatzor@ubuntu.com <> | 2006-08-02 21:41:27 +0200 |
|---|---|---|
| committer | glatzor@ubuntu.com <> | 2006-08-02 21:41:27 +0200 |
| commit | 1b2f3650122a3c7d1997287b8d915f9f54402549 (patch) | |
| tree | fbca309b7619f20bb2211a2a7d2294374d1c8fec /UpdateManager/Common/DistInfo.py | |
| parent | c0e73bb5c6213aa0bc9e0609f9f1d7da254ea2b1 (diff) | |
| download | python-apt-1b2f3650122a3c7d1997287b8d915f9f54402549.tar.gz | |
* use -s option instead of the pipe to cut to get lsb information
* make the origin matcher distribution neutral
* introduce a UpdateOrigin class to make the origins sortable (by
importance)
Diffstat (limited to 'UpdateManager/Common/DistInfo.py')
| -rw-r--r-- | UpdateManager/Common/DistInfo.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/UpdateManager/Common/DistInfo.py b/UpdateManager/Common/DistInfo.py index 7d2d37ad..79d5356c 100644 --- a/UpdateManager/Common/DistInfo.py +++ b/UpdateManager/Common/DistInfo.py @@ -56,7 +56,7 @@ class DistInfo: self.suites = [] if not dist: - pipe = os.popen("lsb_release -i | cut -d : -f 2-") + pipe = os.popen("lsb_release -i -s") dist = pipe.read().strip() pipe.close() del pipe |
