From 3ec67bf76396330fbc5edb45cb370c9abf87be77 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@cd1c1023-2f26-0410-ae45-c471fc1f0318> Date: Fri, 29 Feb 2008 23:31:58 +0000 Subject: [PATCH] move xtermTitle to setTitle so that can ben wrapped git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1347 cd1c1023-2f26-0410-ae45-c471fc1f0318 --- libraries/entropy.py | 20 ++++++++++---------- libraries/outputTools.py | 3 +++ 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/libraries/entropy.py b/libraries/entropy.py index 7100ff89f..0f1107af0 100644 --- a/libraries/entropy.py +++ b/libraries/entropy.py @@ -3231,27 +3231,27 @@ class PackageInterface: if step == "fetch": self.xterm_title += 'Fetching: '+os.path.basename(self.infoDict['download']) - xtermTitle(self.xterm_title) + self.setTitle(self.xterm_title) rc = self.fetch_step() elif step == "checksum": self.xterm_title += 'Verifying: '+os.path.basename(self.infoDict['download']) - xtermTitle(self.xterm_title) + self.setTitle(self.xterm_title) rc = self.checksum_step() elif step == "unpack": self.xterm_title += 'Unpacking: '+os.path.basename(self.infoDict['download']) - xtermTitle(self.xterm_title) + self.setTitle(self.xterm_title) rc = self.unpack_step() elif step == "install": self.xterm_title += 'Installing: '+self.infoDict['atom'] - xtermTitle(self.xterm_title) + self.setTitle(self.xterm_title) rc = self.install_step() elif step == "remove": self.xterm_title += 'Removing: '+self.infoDict['removeatom'] - xtermTitle(self.xterm_title) + self.setTitle(self.xterm_title) rc = self.remove_step() elif step == "showmessages": @@ -3259,27 +3259,27 @@ class PackageInterface: elif step == "cleanup": self.xterm_title += 'Cleaning: '+self.infoDict['atom'] - xtermTitle(self.xterm_title) + self.setTitle(self.xterm_title) rc = self.cleanup_step() elif step == "postinstall": self.xterm_title += 'Postinstall: '+self.infoDict['atom'] - xtermTitle(self.xterm_title) + self.setTitle(self.xterm_title) rc = self.postinstall_step() elif step == "preinstall": self.xterm_title += 'Preinstall: '+self.infoDict['atom'] - xtermTitle(self.xterm_title) + self.setTitle(self.xterm_title) rc = self.preinstall_step() elif step == "preremove": self.xterm_title += 'Preremove: '+self.infoDict['removeatom'] - xtermTitle(self.xterm_title) + self.setTitle(self.xterm_title) rc = self.preremove_step() elif step == "postremove": self.xterm_title += 'Postremove: '+self.infoDict['removeatom'] - xtermTitle(self.xterm_title) + self.setTitle(self.xterm_title) rc = self.postremove_step() if rc != 0: diff --git a/libraries/outputTools.py b/libraries/outputTools.py index 78bf45b58..afbaafa56 100644 --- a/libraries/outputTools.py +++ b/libraries/outputTools.py @@ -406,6 +406,9 @@ class TextInterface: def cycleDone(self): return + def setTitle(self, title): + xtermTitle(title) + def setTotalCycles(self, total): return