aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-03-09 23:23:16 +0100
committerMattias Andrée <maandree@operamail.com>2014-03-09 23:23:16 +0100
commit59fdd2034744af330ab3815b36a3f3b9e36a7286 (patch)
tree9002b46e59be76cf1328c0d1e24805139a6258f1 /src
parentadd draw_text todo, there is an limitation in text length (diff)
downloadxpybar-59fdd2034744af330ab3815b36a3f3b9e36a7286.tar.gz
xpybar-59fdd2034744af330ab3815b36a3f3b9e36a7286.tar.bz2
xpybar-59fdd2034744af330ab3815b36a3f3b9e36a7286.tar.xz
fix errors in pacman plugin
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/pacman.py4
1 files changed, 2 insertions, 2 deletions
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] = []