diff options
author | Necoro <> | 2008-01-18 21:51:08 +0000 |
---|---|---|
committer | Necoro <> | 2008-01-18 21:51:08 +0000 |
commit | 11739be69a3f4368e63c469bc0a8f606bb2cbbec (patch) | |
tree | 00c1b5a2093065e7917f00206c582a061587cf70 /portato/gui | |
parent | 6a9034fb7a161e441934969553ffff63e49348ee (diff) | |
download | portato-11739be69a3f4368e63c469bc0a8f606bb2cbbec.tar.gz portato-11739be69a3f4368e63c469bc0a8f606bb2cbbec.tar.bz2 portato-11739be69a3f4368e63c469bc0a8f606bb2cbbec.zip |
r669@Devoty: necoro | 2008-01-18 22:49:33 +0100
Made it really work
Diffstat (limited to '')
-rw-r--r-- | portato/gui/gui_helper.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/portato/gui/gui_helper.py b/portato/gui/gui_helper.py index 62dd755..5d171d6 100644 --- a/portato/gui/gui_helper.py +++ b/portato/gui/gui_helper.py @@ -268,6 +268,10 @@ class EmergeQueue: self.db = db self.title_update = title_update self.threadClass = threadClass + + if self.console: + self.pty = pty.openpty() + self.console.set_pty(self.pty[0]) def _get_pkg_from_cpv (self, cpv, unmask = False): """Gets a L{backend.Package}-object from a cpv. @@ -486,12 +490,8 @@ class EmergeQueue: command = system.get_merge_command() # open tty - if self.console is not None: - if not self.pty: - self.pty = pty.openpty() - self.console.set_pty(self.pty[0]) - else: - self.console.reset() + if self.console: + self.console.reset() def pre (): os.setsid() # new session |