mirror of
https://github.com/arcan1s/ahriman.git
synced 2026-11-11 07:30:28 +00:00
skip update process if no update supplied
This commit is contained in:
1 parent
c2685f4746
commit
581401d60f
2 files changed
+4
-2
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user