Exemplo n.º 1
0
 def update_aur(self):
     # TODO report packages not un aur
     pkg_names = get_foreign_packages()
     load_aur_cache(pkg_names)
     for pkg_name in pkg_names:
         try:
             pkg = self.repo.package(pkg_name)
             if pkg.upgrade_available():
                 self.add_package(pkg, force=True)
         except PackageNotInRepositoryException:
             continue
Exemplo n.º 2
0
 def add_packages(self, pkgs):
     load_aur_cache(pkgs)
     for pkg in pkgs:
         self.add_package(self.repo.package(pkg), force=True)