Exemplo n.º 1
0
 def appGuiFilter(pkg_name):
     if self.state == remove_state:
         package = PisiIface.get_installed_package(pkg_name)
         return "app:gui" in package.isA
     elif self.state == install_state:
         package = PisiIface.get_repo_package(pkg_name)
         return "app:gui" in package.isA
Exemplo n.º 2
0
 def getPackage(self, package):
     if self.state == remove_state:
         return PisiIface.get_installed_package(package)
     else:
         return PisiIface.get_repo_package(package)