Skip to content
Snippets Groups Projects
Verified Commit a100d63c authored by Karel Koci's avatar Karel Koci :metal:
Browse files

fixup! nsfarm/setup: implement updater setup

parent 7b96b80a
No related merge requests found
......@@ -71,6 +71,10 @@ class Updater(_Setup):
self._sh.run(f"rm -f '{self._fpath}'")
pkgupdate(self._sh)
def execute(self) -> None:
"""Execute pkgupdate and wait for completion."""
pkgupdate(self._sh)
@classmethod
def _2lua(cls, value: typing.Union[str, int, bool, dict]):
"""Converts limited Python types to Lua representation."""
......@@ -105,10 +109,6 @@ class Updater(_Setup):
"""Add request to uninstall packages."""
self._sh.run(f"echo 'Package(\"{name}\", {self._2lua(extra)})' >> '{self._fpath}'")
def execute(self) -> None:
"""Execute pkgupdate and wait for completion."""
pkgupdate(self._sh)
class Pkglist(_Setup):
"""Setup tool to install packages from given package list."""
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment