mirror of
https://github.com/Snigdha-OS/snigdhaos-blackbox.git
synced 2025-09-21 20:15:02 +02:00
Update Functions.py
This commit is contained in:

committed by
GitHub

parent
4a45962b60
commit
dfc5b95e68
@@ -1674,9 +1674,9 @@ def repo_exist(value):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
def install_arco_keyring():
|
def install_snigdhaos_keyring():
|
||||||
try:
|
try:
|
||||||
keyring = base_dir + "/packages/arcolinux-keyring/"
|
keyring = base_dir + "/packages/snigdhaos-keyring/"
|
||||||
file = os.listdir(keyring)
|
file = os.listdir(keyring)
|
||||||
cmd_str = [
|
cmd_str = [
|
||||||
"pacman",
|
"pacman",
|
||||||
@@ -1706,7 +1706,7 @@ def install_arco_keyring():
|
|||||||
|
|
||||||
else:
|
else:
|
||||||
if len(output) == 0:
|
if len(output) == 0:
|
||||||
output.append("Error: install of ArcoLinux keyring failed")
|
output.append("Error: install of Snigdha OS keyring failed")
|
||||||
|
|
||||||
logger.error(" ".join(output))
|
logger.error(" ".join(output))
|
||||||
|
|
||||||
@@ -1717,7 +1717,7 @@ def install_arco_keyring():
|
|||||||
|
|
||||||
return result_err
|
return result_err
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error("Exception in install_arco_keyring(): %s" % e)
|
logger.error("Exception in install_snigdhaos_keyring(): %s" % e)
|
||||||
result_err = {}
|
result_err = {}
|
||||||
|
|
||||||
result_err["cmd_str"] = cmd_str
|
result_err["cmd_str"] = cmd_str
|
||||||
@@ -1726,9 +1726,9 @@ def install_arco_keyring():
|
|||||||
return result_err
|
return result_err
|
||||||
|
|
||||||
|
|
||||||
def remove_arco_keyring():
|
def remove_snigdhaos_keyring():
|
||||||
try:
|
try:
|
||||||
cmd_str = ["pacman", "-Rdd", "arcolinux-keyring", "--noconfirm"]
|
cmd_str = ["pacman", "-Rdd", "snigdhaos-keyring", "--noconfirm"]
|
||||||
with subprocess.Popen(
|
with subprocess.Popen(
|
||||||
cmd_str,
|
cmd_str,
|
||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
@@ -1760,7 +1760,7 @@ def remove_arco_keyring():
|
|||||||
return result_err
|
return result_err
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error("Exception in remove_arco_keyring(): %s" % e)
|
logger.error("Exception in remove_snigdhaos_keyring(): %s" % e)
|
||||||
|
|
||||||
result_err = {}
|
result_err = {}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user