[arch] fix: missing error handling when hard requirements for optional dependencies cannot be found by pacman

This commit is contained in:
Vinicius Moreira
2021-12-09 12:26:40 -03:00
parent e8a74037ab
commit d4446e1c81
2 changed files with 6 additions and 1 deletions

View File

@@ -3474,6 +3474,8 @@ class ArchManager(SoftwareManager):
except PackageInHoldException:
self.logger.warning("There is a requirement in hold for opt dep '{}'".format(p))
continue
except PackageNotFoundException:
self.logger.warning(f"No hard requirements found for optional {p}. Reason: package not found")
return res