aboutsummaryrefslogtreecommitdiff
path: root/pomu
diff options
context:
space:
mode:
authorMykyta Holubakha <hilobakho@gmail.com>2017-07-13 04:43:57 +0300
committerMykyta Holubakha <hilobakho@gmail.com>2017-07-18 23:26:12 +0300
commit222ebdfb4a53534f5037f95c56d14bb88b66e442 (patch)
tree0e28f8f41bbfcf8d328a5d5b5b94152704e62200 /pomu
parentAdded __init__.py files to packages (diff)
downloadpomu-222ebdfb4a53534f5037f95c56d14bb88b66e442.tar.gz
pomu-222ebdfb4a53534f5037f95c56d14bb88b66e442.tar.bz2
pomu-222ebdfb4a53534f5037f95c56d14bb88b66e442.zip
Fixed a logic error in Dispatcher
Diffstat (limited to 'pomu')
-rw-r--r--pomu/source/manager.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pomu/source/manager.py b/pomu/source/manager.py
index 600a987..4989b12 100644
--- a/pomu/source/manager.py
+++ b/pomu/source/manager.py
@@ -75,7 +75,7 @@ class PackageDispatcher():
"""
i = 0
for i in range(len(self.handlers)):
- if self.handlers[0][0] > priority:
+ if self.handlers[i][0] > priority:
break
self.handlers.insert(i, (priority, source, handler))