skip update process if no update supplied

This commit is contained in:
2021-08-10 23:25:12 +03:00
parent aad599be67
commit b5c6c286f7
2 changed files with 4 additions and 2 deletions

View File

@ -211,6 +211,8 @@ class Application:
:param updates: list of packages to update
"""
def process_update(paths: Iterable[Path]) -> None:
if not paths:
return # don't need to process if no update supplied
updated = [Package.load(path, self.repository.pacman, self.repository.aur_url) for path in paths]
self.repository.process_update(paths)
self._finalize(updated)