def instPkg(self, pkgname, relinuxdep=False): p = self.getPkg(pkgname) if not p.is_installed and relinuxdep: if not pkgname in configs[configutils.remafterinst][configutils.value]: configs[configutils.remafterinst][ configutils.value].append(pkgname) aptutil.instPkg(p, True)
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)