Example #1
0
 def __init__(self):
     PackageInfo.__init__(self)
     self._cache = None
     self._ready = False
     self._timeout_id = None
     # setup monitor watch for install/remove changes
     self.apt_finished_stamp=Gio.File.new_for_path(self.APT_FINISHED_STAMP)
     self.apt_finished_monitor = self.apt_finished_stamp.monitor_file(0, None)
     self.apt_finished_monitor.connect(
         "changed", self._on_apt_finished_stamp_changed)
     # this is fast, so ok
     self._language_packages = self._read_language_pkgs()
Example #2
0
 def __init__(self):
     PackageInfo.__init__(self)
     self._cache = None
     self._ready = False
     self._timeout_id = None
     # setup monitor watch for install/remove changes
     self.apt_finished_stamp = Gio.File.new_for_path(
         self.APT_FINISHED_STAMP)
     self.apt_finished_monitor = self.apt_finished_stamp.monitor_file(
         0, None)
     self.apt_finished_monitor.connect("changed",
                                       self._on_apt_finished_stamp_changed)
     # this is fast, so ok
     self._language_packages = self._read_language_pkgs()
Example #3
0
 def __init__(self):
     PackageInfo.__init__(self)
     self._cache = None
     self._ready = False
     self._timeout_id = None
     # setup monitor watch for install/remove changes
     self.apt_finished_stamp = Gio.File.new_for_path(
         self.APT_FINISHED_STAMP)
     self.apt_finished_monitor = self.apt_finished_stamp.monitor_file(0,
         None)
     self.apt_finished_monitor.connect(
         "changed", self._on_apt_finished_stamp_changed)
     # this is fast, so ok
     self._language_packages = self._read_language_pkgs()
     # query the totalize on install using aptdaemon
     try:
         self.aptd_client = AptClient()
     except Exception as e:
         self.aptd_client = None
         logging.error("Can not get aptdaemon client: '%s', no "
                       "size information will be available " % e)
     self._aptd_trans = None
 def __init__(self):
     PackageInfo.__init__(self)
     self._cache = None
     self._ready = False
     self._timeout_id = None
     # setup monitor watch for install/remove changes
     self.apt_finished_stamp = Gio.File.new_for_path(
         self.APT_FINISHED_STAMP)
     self.apt_finished_monitor = self.apt_finished_stamp.monitor_file(
         0, None)
     self.apt_finished_monitor.connect("changed",
                                       self._on_apt_finished_stamp_changed)
     # this is fast, so ok
     self._language_packages = self._read_language_pkgs()
     # query the totalize on install using aptdaemon
     try:
         self.aptd_client = AptClient()
     except Exception as e:
         self.aptd_client = None
         logging.error("Can not get aptdaemon client: '%s', no "
                       "size information will be available " % e)
     self._aptd_trans = None