a quick and very ugly fix for pacman -Qu

This commit is contained in:
Von Random 2017-01-13 14:30:52 +03:00
parent 4834c25da4
commit e84936b3f8

View file

@ -18,5 +18,6 @@ class PluginThread(plugins.PluginThreadCommon):
self.status['urgent'] = False self.status['urgent'] = False
def main(self): def main(self):
updates = subprocess.getoutput('/usr/bin/pacman -Qu').count("\n") # TODO: this is an ugly hack, fix it with subprocess.Popen asap
updates = subprocess.getoutput('/usr/bin/pacman -Qu').count(" -> ")
self.format_status(updates) self.format_status(updates)