[arch] refactoring: 'orphan' as a property

This commit is contained in:
Vinicius Moreira
2022-03-12 11:45:18 -03:00
parent ff0903d551
commit 1bf45547b2
2 changed files with 6 additions and 2 deletions

View File

@@ -271,3 +271,7 @@ class ArchPackage(SoftwarePackage):
return hash((self.view_name, self.repository))
else:
return hash((self.name, self.repository))
@property
def orphan(self) -> bool:
return self.maintainer is None