summaryrefslogtreecommitdiff
path: root/portato/plugins/resume_loop.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--portato/plugins/resume_loop.py52
1 files changed, 0 insertions, 52 deletions
diff --git a/portato/plugins/resume_loop.py b/portato/plugins/resume_loop.py
deleted file mode 100644
index e4531d0..0000000
--- a/portato/plugins/resume_loop.py
+++ /dev/null
@@ -1,52 +0,0 @@
-# -*- coding: utf-8 -*-
-#
-# File: portato/plugins/resume_loop.py
-# This file is part of the Portato-Project, a graphical portage-frontend.
-#
-# Copyright (C) 2007 René 'Necoro' Neumann
-# This is free software. You may redistribute copies of it under the terms of
-# the GNU General Public License version 2.
-# There is NO WARRANTY, to the extent permitted by law.
-#
-# Written by René 'Necoro' Neumann <necoro@necoro.net>
-
-import pty, time
-from subprocess import Popen, STDOUT
-from portato.backend import system
-from portato.helper import debug, warning
-
-console = None
-title_update = None
-command = "until emerge --resume --skipfirst; do : ; done"
-
-def set_data (*args, **kwargs):
- global console, title_update
- console = kwargs["console"]
- title_update = kwargs["title_update"]
-
-def resume_loop (retcode, *args, **kwargs):
- if retcode is None:
- warning(_("Resume-loop called while process is still running!"))
- elif retcode == 0:
- # everything ok - ignore
- #pass
- debug("Everything is ok.")
- else:
- if console is None:
- debug("No console for the resume loop...")
- else:
- # open tty
- (master, slave) = pty.openpty()
- console.set_pty(master)
- p = Popen(command, stdout = slave, stderr = STDOUT, shell = True, env = system.get_environment())
-
- # update titles
- old_title = console.get_window_title()
- while p and p.poll() is None:
- if title_update :
- title = console.get_window_title()
- if title != old_title:
- title_update(title)
- time.sleep(0.5)
-
- if title_update: title_update(None)
100'>2013-11-21IE/IJ: Session logicRené 'Necoro' Neumann1-2/+15 2013-11-06Colorscheme for virtual console.René 'Necoro' Neumann1-1/+5 2013-11-01Do not try to set window title and stuff in linux consoleRené 'Necoro' Neumann1-0/+3 2013-10-30Set terminal title not only on path change, but for each new prompt.René 'Necoro' Neumann1-2/+2 2013-10-22cwd-spawn: Use M-Return instead of M-o for consistency.René 'Necoro' Neumann1-2/+2 2013-10-22Add cwd-spawn to urxvt to allow spawning a new terminal from the currentRené 'Necoro' Neumann3-2/+199 2013-10-22Use chpwd_functions and precmd_functions instead of putting everything inRené 'Necoro' Neumann1-19/+23 2013-09-30urxvt: execute the wgetpaste check each timeRené 'Necoro' Neumann1-2/+5 2013-09-30urxvt: wgetpaste fixRené 'Necoro' Neumann1-4/+4 2013-09-30Allow HOME variable in .Xresources.René 'Necoro' Neumann2-3/+3 2013-09-30wgetpaste support for urxvt.René 'Necoro' Neumann2-1/+28 2013-09-30Urxvt autotransform for <filename>:<line>.René 'Necoro' Neumann1-1/+4 2013-09-30Remove tabbed(x) from urxvt. We use i3 -- no need for it.René 'Necoro' Neumann1-9/+0 2013-09-30Do not display icon in urxvt. It's not supported by i3 anyway.René 'Necoro' Neumann1-1/+1 2013-09-29Remove wrong monitors lineRené 'Necoro' Neumann1-1/+0 2013-09-29Delete vimperator paste plugin -- seems not to work anymore with new FFRené 'Necoro' Neumann1-266/+0 2013-09-29Use $HOST instead of Cauchiy in titleRené 'Necoro' Neumann1-1/+1 2013-09-24Remove herbstluftwmRené 'Necoro' Neumann1-1/+0 2013-09-24Conky changesRené 'Necoro' Neumann2-5/+13 2013-09-15Remove trailing slash from \~ulpRené 'Necoro' Neumann1-1/+1 2013-09-15Make cci explicitly use python2René 'Necoro' Neumann1-1/+1 2013-09-10Node/NPM preparationRené 'Necoro' Neumann3-1/+13