From 1b2f3650122a3c7d1997287b8d915f9f54402549 Mon Sep 17 00:00:00 2001 From: "glatzor@ubuntu.com" <> Date: Wed, 2 Aug 2006 21:41:27 +0200 Subject: * 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) --- UpdateManager/Common/aptsources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'UpdateManager/Common/aptsources.py') diff --git a/UpdateManager/Common/aptsources.py b/UpdateManager/Common/aptsources.py index 3d317b15..fd77fe63 100644 --- a/UpdateManager/Common/aptsources.py +++ b/UpdateManager/Common/aptsources.py @@ -452,7 +452,7 @@ class Distribution: # get the LSB information lsb_info = [] for lsb_option in ["-i", "-c", "-d", "-r"]: - pipe = os.popen("lsb_release %s | cut -d : -f 2-" % lsb_option) + pipe = os.popen("lsb_release %s -s" % lsb_option) lsb_info.append(pipe.read().strip()) del pipe (self.id, self.codename, self.description, self.release) = lsb_info -- cgit v1.2.3