Added operations.py
Define all operations which soypak can do. Early development of func@install_packages
This commit is contained in:
parent
683e55ea0d
commit
4315780777
15
soypak/deps/operations.py
Normal file
15
soypak/deps/operations.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import sys
|
||||
import clog
|
||||
import soypak.deps.bottler as bottler
|
||||
|
||||
|
||||
_log = clog.Logger.get("runtime_logger")
|
||||
|
||||
|
||||
def install_packages(pkgs: list[bottler.PackageItem]):
|
||||
if not isinstance(pkgs, bottler.PackageItem):
|
||||
_log.error(f"TypeError: {pkgs=}, expected list[PackageItem].")
|
||||
_log.printLog("There was an issue when operating on the transaction.", level=4)
|
||||
sys.exit(1)
|
||||
|
||||
# :@TODO: install the damned things!
|
||||
Loading…
Reference in New Issue
Block a user