Пример #1
0
 def run(self):
     logger.logV(self.tn, logger.I, "Setting up Ubiquity")
     if os.getenv("KDE_FULL_SESSION") != None:
         aptutil.instPkg(aptutil.getPkg("ubiquity-frontend-kde", aptcache), self.depcache)
         aptutil.remPkg(aptutil.getPkg("ubiquity-frontend-gtk", aptcache), self.depcache, True)
     else:
         aptutil.remPkg(aptutil.getPkg("ubiquity-frontend-kde", aptcache), self.depcache, True)
         aptutil.instPkg(aptutil.getPkg("ubiquity-frontend-gtk", aptcache), self.depcache)
     if configutils.parseBoolean(config[configutils.popcon]):
         logger.logV(self.tn, logger.I, "Setting up Popularity Contest")
         aptutil.instPkg(aptutil.getPkg("popularity-contest"), self.depcache)
     else:
         aptutil.remPkg(aptutil.getPkg("popularity-contest"), self.depcache, True)
     aptutil.commitChanges(self.depcache, self.ap, self.ip)
Пример #2
0
 def run(self):
     logger.logV(self.tn, logger.I, "Setting up Ubiquity")
     if os.getenv("KDE_FULL_SESSION") != None:
         aptutil.instPkg(aptutil.getPkg("ubiquity-frontend-kde", aptcache),
                         self.depcache)
         aptutil.remPkg(aptutil.getPkg("ubiquity-frontend-gtk", aptcache),
                        self.depcache, True)
     else:
         aptutil.remPkg(aptutil.getPkg("ubiquity-frontend-kde", aptcache),
                        self.depcache, True)
         aptutil.instPkg(aptutil.getPkg("ubiquity-frontend-gtk", aptcache),
                         self.depcache)
     if configutils.parseBoolean(config[configutils.popcon]):
         logger.logV(self.tn, logger.I, "Setting up Popularity Contest")
         aptutil.instPkg(aptutil.getPkg("popularity-contest"),
                         self.depcache)
     else:
         aptutil.remPkg(aptutil.getPkg("popularity-contest"), self.depcache,
                        True)
     aptutil.commitChanges(self.depcache, self.ap, self.ip)
Пример #3
0
 def remPkg(self, pkgname, purge=True):
     p = self.getPkg(pkgname)
     aptutil.remPkg(p, purge)