fix pacman plugin to properly parse command output
This commit is contained in:
parent
e33bf61a30
commit
ba862efad9
1 changed files with 2 additions and 1 deletions
|
@ -19,7 +19,8 @@ class PluginThread(plugins.PluginThreadCommon):
|
||||||
def main(self):
|
def main(self):
|
||||||
pacman_qu = subprocess.Popen(
|
pacman_qu = subprocess.Popen(
|
||||||
('/usr/bin/pacman', '-Qu'), stdout=subprocess.PIPE,
|
('/usr/bin/pacman', '-Qu'), stdout=subprocess.PIPE,
|
||||||
stderr=subprocess.DEVNULL, stdin=subprocess.DEVNULL
|
stderr=subprocess.DEVNULL, stdin=subprocess.DEVNULL,
|
||||||
|
encoding='UTF-8'
|
||||||
)
|
)
|
||||||
out = pacman_qu.communicate()[0].strip().splitlines()
|
out = pacman_qu.communicate()[0].strip().splitlines()
|
||||||
packages = [pkg for pkg in out if not '[ignored]' in pkg]
|
packages = [pkg for pkg in out if not '[ignored]' in pkg]
|
||||||
|
|
Loading…
Reference in a new issue