Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit13b7a53

Browse files
committed
Mon May 1 10:44:42 2023 -0300
1 parent94df234 commit13b7a53

File tree

12 files changed

+58
-15
lines changed

12 files changed

+58
-15
lines changed

‎src/ashpk_core.py‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -904,15 +904,23 @@ def return_children(tree, id):
904904
returnchildren
905905

906906
# rm -rf for deleting everything recursively (even top folder)
907-
defrmrf(*item):
907+
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
908916
forfinitem:
909917
ifos.path.isdir(f):
910918
rmtree(f)
911919
else:
912920
os.unlink(f)
913921

914922
# rm -rf for just deleting contents
915-
defrmrf_star(a_path):
923+
defrmrf_star_ERROR(a_path):# TODO
916924
files=glob(f"{a_path}/*")
917925
rmrf(*files)
918926

‎src/distros/alpine/ashpk.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
fromsrc.ashpk_coreimport*
1+
try:
2+
fromsrc.ashpk_coreimport*
3+
exceptImportError:
4+
pass# ignore
25

36
# ---------------------------- SPECIFIC FUNCTIONS ---------------------------- #
47

‎src/distros/alpine/installer.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ def main():
9090
os.system(f"/usr/sbin/adduser{username} plugdev")
9191

9292
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",
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",
9595
"mount-ro shutdown","killprocs shutdown","savecache shutdown"]
9696
foriintuples:
9797
os.system(f"{rc_update} add{i}")

‎src/distros/arch/ashpk.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
fromsrc.ashpk_coreimport*
1+
try:
2+
fromsrc.ashpk_coreimport*
3+
exceptImportError:
4+
pass# ignore
25

36
# ---------------------------- SPECIFIC FUNCTIONS ---------------------------- #
47

‎src/distros/cachyos/ashpk.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
fromsrc.ashpk_coreimport*
1+
try:
2+
fromsrc.ashpk_coreimport*
3+
exceptImportError:
4+
pass# ignore
25

36
# ---------------------------- SPECIFIC FUNCTIONS ---------------------------- #
47

‎src/distros/debian/ashpk.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
fromsrc.ashpk_coreimport*
1+
try:
2+
fromsrc.ashpk_coreimport*
3+
exceptImportError:
4+
pass# ignore
25

36
# ---------------------------- SPECIFIC FUNCTIONS ---------------------------- #
47

‎src/distros/endeavouros/ashpk.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
fromsrc.ashpk_coreimport*
1+
try:
2+
fromsrc.ashpk_coreimport*
3+
exceptImportError:
4+
pass# ignore
25

36
# ---------------------------- SPECIFIC FUNCTIONS ---------------------------- #
47

‎src/distros/fedora/ashpk.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
fromsrc.ashpk_coreimport*
1+
try:
2+
fromsrc.ashpk_coreimport*
3+
exceptImportError:
4+
pass# ignore
25

36
# ---------------------------- SPECIFIC FUNCTIONS ---------------------------- #
47

‎src/distros/kicksecure/ashpk.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
fromsrc.ashpk_coreimport*
1+
try:
2+
fromsrc.ashpk_coreimport*
3+
exceptImportError:
4+
pass# ignore
25

36
# ---------------------------- SPECIFIC FUNCTIONS ---------------------------- #
47

‎src/distros/proxmox/ashpk.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
fromsrc.ashpk_coreimport*
1+
try:
2+
fromsrc.ashpk_coreimport*
3+
exceptImportError:
4+
pass# ignore
25

36
# ---------------------------- SPECIFIC FUNCTIONS ---------------------------- #
47

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp