summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVon Random <von@vdrandom.org>2017-01-13 14:30:52 +0300
committerVon Random <von@vdrandom.org>2017-01-13 14:30:52 +0300
commite84936b3f88543806b99c4e34ab693acdf861b15 (patch)
tree95bb88558f56d0700082c9e3e8547eddee56086f
parent4834c25da42d6b90528d0ab5388fcf466f0d5baf (diff)
a quick and very ugly fix for pacman -Qu
-rw-r--r--plugins/pacman.py3
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)