summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornecoro <>2006-09-06 20:49:37 +0000
committernecoro <>2006-09-06 20:49:37 +0000
commitdeba1986aabff275c1c0ee496fecf826f2af5a09 (patch)
tree18d4a583444d9e8a61563546ef1687220c18efe1
parentf11d7e5bf8cc3a32cbd3bb97d843efdb08fa9648 (diff)
downloadportato-deba1986aabff275c1c0ee496fecf826f2af5a09.tar.gz
portato-deba1986aabff275c1c0ee496fecf826f2af5a09.tar.bz2
portato-deba1986aabff275c1c0ee496fecf826f2af5a09.zip
Fixed bug with (un)emerging.
-rwxr-xr-xgui.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/gui.py b/gui.py
index c9e9196..b3c138f 100755
--- a/gui.py
+++ b/gui.py
@@ -54,12 +54,12 @@ class EmergeQueue:
if self.unmergeIt: # update tree
self.tree.append(self.unmergeIt, [sth])
- def _emerge (self, options):
+ def _emerge (self, options, it):
"""Calls emerge and updates the terminal."""
# open pty
(master, slave) = pty.openpty()
Popen("emerge "+options, stdout = slave, stderr = STDOUT, shell = True)
- self.removeAll(self.emergeIt)
+ self.removeAll(it)
self.console.set_pty(master)
def emerge (self, force = False):
@@ -68,11 +68,12 @@ class EmergeQueue:
list = ""
for k in self.mergequeue.keys():
- list += " '='"+k+"'"
+ list += " '="+k+"'"
s = ""
+ print list
if not force: s = "-pv "
- self._emerge(s+list)
+ self._emerge(s+list, self.emergeIt)
def unmerge (self, force = False):
"""Unmerges everything in the umerge-queue. If force is 'False' (default) only "emerge -pv -C" is called."""
@@ -81,7 +82,7 @@ class EmergeQueue:
list = " ".join(self.unmergequeue)
s = ""
if not force: s = "-pv "
- self._emerge("-C "+s+list)
+ self._emerge("-C "+s+list, self.unmergeIt)
def removeAll (self, parentIt):
"""Removes all children of a given parent TreeIter."""
f1a2e06c6c9e3d77368b0e87&follow=1'>Small layout adjustments to summary and blob viewLars Hjemli3-5/+13 2006-12-13Add display of tree content w/ui-tree.cLars Hjemli9-8/+113 2006-12-12cache_lock: do xstrdup/free on lockfileLars Hjemli1-1/+2 2006-12-11Don't truncate valid cachefilesLars Hjemli3-4/+16 2006-12-11Move global variables + callback functions into shared.cLars Hjemli4-82/+86 2006-12-11Move functions for generic object output into ui-view.cLars Hjemli4-34/+43 2006-12-11Move log-functions into ui-log.cLars Hjemli5-111/+121 2006-12-11Move repo summary functions into ui-summary.cLars Hjemli4-47/+59 2006-12-11Move functions for repolist output into ui-repolist.cLars Hjemli5-70/+90 2006-12-11Move common output-functions into ui-shared.cLars Hjemli4-82/+99 2006-12-11Rename config.c to parsing.c + move cgit_parse_query from cgit.c to parsing.cLars Hjemli4-28/+29 2006-12-11Avoid infinite loops in caching layerLars Hjemli3-14/+31 2006-12-11Let 'make install' clear all cachefilesLars Hjemli1-0/+2 2006-12-11Fix cache algorithm loopholeLars Hjemli3-11/+16 2006-12-10Add version identifier in generated filesLars Hjemli2-9/+14 2006-12-10Add license file and copyright noticesLars Hjemli5-0/+372 2006-12-10Add caching infrastructureLars Hjemli9-28/+353