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
This commit is contained in:
(no author)
2008-02-29 23:31:58 +00:00
parent 2f4bf5a535
commit 3ec67bf763
2 changed files with 13 additions and 10 deletions
+10 -10
View File
@@ -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:
+3
View File
@@ -406,6 +406,9 @@ class TextInterface:
def cycleDone(self):
return
def setTitle(self, title):
xtermTitle(title)
def setTotalCycles(self, total):
return