#1 fix and #3 fix for edge

This commit is contained in:
2024-11-23 13:22:49 +01:00
parent edcfa6110a
commit 77fbcb9b31
4 changed files with 20 additions and 8 deletions

6
sh.py
View File

@@ -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.")