[arch] improvement -> upgrade: checking specific version requirements and marking packages as 'cannot upgrade' when these requirements are not met

This commit is contained in:
Vinicius Moreira
2020-09-01 19:36:05 -03:00
parent d7225dab3b
commit feb061efa4
18 changed files with 286 additions and 43 deletions

View File

@@ -180,3 +180,8 @@ class ArchPackage(SoftwarePackage):
else:
return ACTIONS_AUR_ENABLE_PKGBUILD_EDITION
def __hash__(self):
if self.view_name is not None:
return hash((self.view_name, self.repository))
else:
return hash((self.name, self.repository))