summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <egon@top>2005-12-01 11:48:00 +0100
committerMichael Vogt <egon@top>2005-12-01 11:48:00 +0100
commitd0b7e12a48c0df3e0af64fe74333ff1010554a28 (patch)
tree50f92f5ecbe86a5927b40b7a8c52e221d6650aae
parent1e0aee98a02ef0220038bc2c22080191882a9c3e (diff)
downloadpython-apt-d0b7e12a48c0df3e0af64fe74333ff1010554a28.tar.gz
* cleanups in the MetaRelease object
-rw-r--r--UpdateManager/MetaRelease.py1
-rw-r--r--UpdateManager/UpdateManager.py6
2 files changed, 1 insertions, 6 deletions
diff --git a/UpdateManager/MetaRelease.py b/UpdateManager/MetaRelease.py
index 5127029a..9c887d13 100644
--- a/UpdateManager/MetaRelease.py
+++ b/UpdateManager/MetaRelease.py
@@ -38,6 +38,7 @@ class MetaRelease(gobject.GObject):
self.metarelease_information = None
self.downloading = True
t=thread.start_new_thread(self.download, ())
+ gobject.timeout_add(1000,self.check)
def get_dist(self):
" return the codename of the current runing distro "
diff --git a/UpdateManager/UpdateManager.py b/UpdateManager/UpdateManager.py
index d13d226f..7b846ed9 100644
--- a/UpdateManager/UpdateManager.py
+++ b/UpdateManager/UpdateManager.py
@@ -30,7 +30,6 @@ import GtkProgress
from MetaRelease import Dist, MetaRelease
# FIXME:
-# - cary a reference to the update-class around in the ListStore
# - kill "all_changes" and move the changes into the "Update" class
# list constants
@@ -661,13 +660,8 @@ class UpdateManager(SimpleGladeApp):
def main(self):
self.meta = MetaRelease()
- # FIXME: this callback seting sucks!
- #self.meta.current_dist_not_supported = self.current_dist_not_supported
- #self.meta.new_dist_available = self.new_dist_available
self.meta.connect("new_dist_available",self.new_dist_available)
self.meta.connect("dist_no_longer_supported",self.dist_no_longer_supported)
- gobject.timeout_add(1000, self.meta.check)
- #self.get_meta_release()
self.store.append([True, _("Initializing and getting list of updates..."),
None, None, None, None, None])