[arch] improvement -> repositories/AUR search time

This commit is contained in:
Vinicius Moreira
2021-01-11 16:33:13 -03:00
parent ce1c08458e
commit 6aebaf6718
5 changed files with 103 additions and 82 deletions

View File

@@ -89,7 +89,7 @@ class AURDataMapper:
def fill_package_build(self, pkg: ArchPackage):
cached_pkgbuild = pkg.get_cached_pkgbuild_path()
if os.path.exists(cached_pkgbuild):
if pkg.installed and os.path.exists(cached_pkgbuild):
with open(cached_pkgbuild) as f:
pkg.pkgbuild = f.read()
else: