summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-02-17 00:02:54 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-02-17 00:02:54 +0100
commitb14a26558baa249b786f41d353401d324cb958f3 (patch)
tree2e8bcd052424cf71770e3038424070a318a2d8a4
parent62068bb37a5884af2049bf0061f7553b0a295c76 (diff)
downloadportato-b14a26558baa249b786f41d353401d324cb958f3.tar.gz
portato-b14a26558baa249b786f41d353401d324cb958f3.tar.bz2
portato-b14a26558baa249b786f41d353401d324cb958f3.zip
First get dependencies. So that in case an error occurs, the iterator is not added.
Diffstat (limited to '')
-rw-r--r--portato/gui/queue.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/portato/gui/queue.py b/portato/gui/queue.py
index 4805129..d7b1e3f 100644
--- a/portato/gui/queue.py
+++ b/portato/gui/queue.py
@@ -191,14 +191,14 @@ class EmergeQueue:
self.remove(top)
raise
- # add iter
- subIt = self.tree.append(it, self.tree.build_append_value(cpv, oneshot = oneshot, update = update, downgrade = downgrade, version = uVersion, useChange = changedUse))
- self.iters[type][cpv] = subIt
-
# get dependencies
deps = pkg.get_dep_packages(return_blocks = True)
self.deps[type][cpv] = deps
+ # add iter
+ subIt = self.tree.append(it, self.tree.build_append_value(cpv, oneshot = oneshot, update = update, downgrade = downgrade, version = uVersion, useChange = changedUse))
+ self.iters[type][cpv] = subIt
+
for d in deps:
if d[0] == "!": # block
dep = d[1:]