From 59fdd2034744af330ab3815b36a3f3b9e36a7286 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 9 Mar 2014 23:23:16 +0100 Subject: fix errors in pacman plugin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/plugins/pacman.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/plugins/pacman.py b/src/plugins/pacman.py index 5d2aef8..b490bde 100644 --- a/src/plugins/pacman.py +++ b/src/plugins/pacman.py @@ -68,7 +68,7 @@ class Pacman: @param installed:bool Whether it is information about the installed version that should be fetched ''' verb = '-Qi' if installed else '-Si' # -Sii and -Qii, while a bit different, would get us more info. - info = spawn_read('pacman', verb, package).split('\n') # TODO fixate locale + info = spawn_read('env', 'LOCALE=C', 'pacman', verb, package).split('\n') if len(info) == 1: raise Exception('Package `%s\' is not installed' % package) @@ -86,7 +86,7 @@ class Pacman: break field = last_field if colon >= 0: - field = ' '.join(line[:colon]) + last_field = field = ' '.join(line[:colon]) line = line[colon + 1:] if field not in fields: fields[field] = [] -- cgit v1.2.3-70-g09d2