We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent94df234 commit13b7a53Copy full SHA for 13b7a53
src/ashpk_core.py
@@ -904,15 +904,23 @@ def return_children(tree, id):
904
returnchildren
905
906
# rm -rf for deleting everything recursively (even top folder)
907
-defrmrf(*item):
+defrmrf(a_path):
908
+os.system(f"rm -rf{a_path}")
909
+
910
+# rm -rf for just deleting contents
911
+defrmrf_star(a_path):
912
+os.system(f"rm -rf{a_path}/*")
913
914
+# rm -rf for deleting everything recursively (even top folder)
915
+defrmrf_ERRORS(*item):# TODO
916
forfinitem:
917
ifos.path.isdir(f):
918
rmtree(f)
919
else:
920
os.unlink(f)
921
922
# rm -rf for just deleting contents
-defrmrf_star(a_path):
923
+defrmrf_star_ERROR(a_path):# TODO
924
files=glob(f"{a_path}/*")
925
rmrf(*files)
926
src/distros/alpine/ashpk.py
@@ -1,4 +1,7 @@
1
-fromsrc.ashpk_coreimport*
+try:
2
+fromsrc.ashpk_coreimport*
3
+exceptImportError:
4
+pass# ignore
5
6
# ---------------------------- SPECIFIC FUNCTIONS ---------------------------- #
7
src/distros/alpine/installer.py
@@ -90,8 +90,8 @@ def main():
90
os.system(f"/usr/sbin/adduser{username} plugdev")
91
92
rc_update=find_command(["rc-update"])
93
-tuples= ["devfs sysinit","dmesg sysinit","mdev sysinit","hwdrivers sysinit","cgroups sysinit",
94
-"hwclock boot","modules boot","sysctl boot","hostname boot","bootmisc boot","syslog boot","swap boot","networking boot","seedrng boot",
+tuples= ["devfs sysinit","dmesg sysinit","mdev sysinit","hwdrivers sysinit","cgroups sysinit",
+"hwclock boot","modules boot","sysctl boot","hostname boot","bootmisc boot","syslog boot","swap boot","networking boot","seedrng boot",
95
"mount-ro shutdown","killprocs shutdown","savecache shutdown"]
96
foriintuples:
97
os.system(f"{rc_update} add{i}")
src/distros/arch/ashpk.py
src/distros/cachyos/ashpk.py
src/distros/debian/ashpk.py
src/distros/endeavouros/ashpk.py
src/distros/fedora/ashpk.py
src/distros/kicksecure/ashpk.py
src/distros/proxmox/ashpk.py