[Apt-offline-devel] [SCM] Offline APT Package Manager branch, apt-offline-qt, updated. v0.9.9-110-gdeef88f
Abhishek Mishra
ideamonk at gmail.com
Sat Aug 21 15:40:11 UTC 2010
The following commit has been merged in the apt-offline-qt branch:
commit 481adaa330f001a547b0fa2c7514000debf267fd
Author: Abhishek Mishra <ideamonk at gmail.com>
Date: Fri Aug 20 01:29:42 2010 +0530
snap - http://twitpic.com/2g978t/full , removed commented unused codes in installer
diff --git a/apt_offline_gui/AptOfflineQtInstall.py b/apt_offline_gui/AptOfflineQtInstall.py
index 4567bf7..f716aa4 100644
--- a/apt_offline_gui/AptOfflineQtInstall.py
+++ b/apt_offline_gui/AptOfflineQtInstall.py
@@ -31,29 +31,6 @@ class Worker(QtCore.QThread):
# extract chinese whisper from text
self.emit (QtCore.SIGNAL('output(QString)'), text)
return
- '''
- # TODO: if backend sends out any progress, error or success messages,
- # rewrite UI handlers here
-
- if ("MSG_START" in text):
- self.emit (QtCore.SIGNAL('status(QString)'), "Fetching missing meta data ...")
- return
- if ("MSG_END" in text):
- self.emit (QtCore.SIGNAL('status(QString)'), "Downloading packages ...")
- return
-
- if ("[" in text and "]" in text):
- try:
- # no more splits, we know the exact byte count now
- progress = str(apt_offline_core.AptOfflineCoreLib.totalSize[1])
- total = str(apt_offline_core.AptOfflineCoreLib.totalSize[0])
- self.emit (QtCore.SIGNAL('progress(QString,QString)'), progress,total)
- return
- except:
- pass
-
- self.emit (QtCore.SIGNAL('output(QString)'), text)
- '''
def flush(self):
''' nothing to do :D '''
@@ -111,15 +88,6 @@ class AptOfflineQtInstall(QtGui.QDialog):
self.worker.setArgs (args)
self.worker.start()
- ''' old discarded imcompatible threading '''
- # setup i/o redirects before call
- #sys.stdout = self
- #sys.stderr = self
- # returnStatus = apt_offline_core.AptOfflineCoreLib.installer(args)
- # TODO: deal with return status laters
- #thread.start_new_thread (apt_offline_core.AptOfflineCoreLib.installer, (args,))
- # TODO to be implemented later
- # self.accept()
def popupDirectoryDialog(self):
# Popup a Directory selection box
--
Offline APT Package Manager
More information about the Apt-offline-devel
mailing list