diff options
author | Von Random <von@vdrandom.org> | 2017-01-13 14:30:52 +0300 |
---|---|---|
committer | Von Random <von@vdrandom.org> | 2017-01-13 14:30:52 +0300 |
commit | e84936b3f88543806b99c4e34ab693acdf861b15 (patch) | |
tree | 95bb88558f56d0700082c9e3e8547eddee56086f | |
parent | 4834c25da42d6b90528d0ab5388fcf466f0d5baf (diff) |
a quick and very ugly fix for pacman -Qu
-rw-r--r-- | plugins/pacman.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/pacman.py b/plugins/pacman.py index 5789d7c..2f4eb8a 100644 --- a/plugins/pacman.py +++ b/plugins/pacman.py @@ -18,5 +18,6 @@ class PluginThread(plugins.PluginThreadCommon): self.status['urgent'] = False 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) |