home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 2.6)
-
- import pygtk
- pygtk.require('2.0')
- import gobject
- import thread
- import urllib2
- import os
- import string
- import apt_pkg
- import time
- import rfc822
- from subprocess import Popen, PIPE
- from Core.MetaRelease import MetaReleaseCore
-
- class MetaRelease(MetaReleaseCore, gobject.GObject):
- __gsignals__ = {
- 'new_dist_available': (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, (gobject.TYPE_PYOBJECT,)),
- 'dist_no_longer_supported': (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, ()) }
-
- def __init__(self, useDevelopmentRelase = False, useProposed = False):
- gobject.GObject.__init__(self)
- MetaReleaseCore.__init__(self, useDevelopmentRelase, useProposed)
- gobject.timeout_add(1000, self.check)
-
-
- def check(self):
- keepRuning = True
- if self.no_longer_supported is not None:
- keepRuning = False
- self.emit('dist_no_longer_supported')
-
- if self.new_dist is not None:
- keepRuning = False
- self.emit('new_dist_available', self.new_dist)
-
- return keepRuning
-
-
-