6
sh.py
6
sh.py
@@ -1,6 +1,6 @@
|
||||
"""
|
||||
The shell for PyNVOS
|
||||
Version: 0.2.0.0400
|
||||
Version: 0.2.0.0401
|
||||
"""
|
||||
import importlib
|
||||
import os
|
||||
@@ -13,7 +13,7 @@ class shell(cmd.Cmd):
|
||||
jail_mgr = importlib.import_module(".jail_mgr", "vfs.sys")
|
||||
jailmgr = jail_mgr.PyJail()
|
||||
kver = jailmgr.kver()
|
||||
intro = f"Shell started, PyNVOS {kver}"
|
||||
intro = f"Shell started, PyJail {kver}"
|
||||
prompt = "shell-0.2$ "
|
||||
file = None
|
||||
|
||||
@@ -47,7 +47,7 @@ class shell(cmd.Cmd):
|
||||
with open(self.jailmgr.fs(f"/usr/pkgs/metacache/{pkg}.pmd"), "r") as f:
|
||||
package_meta = f.read()
|
||||
f.close()
|
||||
print(package_meta)
|
||||
self.jailmgr.msg("shell.do_pkg", package_meta, True, "INFO")
|
||||
y_n_confirmation = input("Do you want to install this package? [y/N] ")
|
||||
if y_n_confirmation.lower() != "y":
|
||||
print("Aborted.")
|
||||
|
Reference in New Issue
Block a user