summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--portato/gui/queue.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/portato/gui/queue.py b/portato/gui/queue.py
index 21ab8ca..4805129 100644
--- a/portato/gui/queue.py
+++ b/portato/gui/queue.py
@@ -22,7 +22,7 @@ from subprocess import Popen
from .. import backend, plugin
from ..backend import flags, system
from ..backend.exceptions import BlockedException
-from ..helper import debug, info, warning, send_signal_to_group, unique_array, flatten
+from ..helper import debug, info, warning, error, send_signal_to_group, unique_array, flatten
from ..waiting_queue import WaitingQueue
from ..odict import OrderedDict
from .updater import Updater
@@ -300,9 +300,10 @@ class EmergeQueue:
raise BlockedException(blocked, pkgs[0].get_cpv())
else: # unmerge
- self.unmergequeue.append(cpv)
- if self.tree: # update tree
- self.iters["uninstall"][cpv] = self.tree.append(self.tree.get_unmerge_it(), self.tree.build_append_value(cpv))
+ if cpv not in self.unmergequeue:
+ self.unmergequeue.append(cpv)
+ if self.tree: # update tree
+ self.iters["uninstall"][cpv] = self.tree.append(self.tree.get_unmerge_it(), self.tree.build_append_value(cpv))
def _queue_append (self, cpv, oneshot = False):
"""Convenience function appending a cpv either to self.mergequeue or to self.oneshotmerge.
/es_ES.po?h=no_config&id=0583fbf16d6bf2cd40c12b91881874d3d65f01f2&follow=1'>Update spanish translationDaniel Halens1-245/+258 2009-08-15Use boolean flags instead of obscure C flags for ipc.MessageQueueRené 'Necoro' Neumann3-13/+15 2009-08-15TypoRené 'Necoro' Neumann1-1/+1 2009-08-15Enhanced the extensions.shRené 'Necoro' Neumann1-3/+8 2009-08-15Move eix-format to correct locationRené 'Necoro' Neumann1-0/+0