fix pacman plugin to properly parse command output

This commit is contained in:
Von Random 2019-02-28 19:00:49 +03:00
parent e33bf61a30
commit ba862efad9

View file

@ -19,7 +19,8 @@ class PluginThread(plugins.PluginThreadCommon):
def main(self):
pacman_qu = subprocess.Popen(
('/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()
packages = [pkg for pkg in out if not '[ignored]' in pkg]