Testing: Modules

Signed-off-by: debianpepper <pdpdebdevuan@protonmail.com>
This commit is contained in:
debianpepper 2023-12-13 21:24:59 +09:00
parent 73d4e6fa12
commit 1c14c7ef10
1 changed files with 3 additions and 5 deletions

View File

@ -27,7 +27,7 @@ def make_check_sum():
""" Generate the check sum files """
os.chdir(HOME_FOLDER + FUSATO_ROOT)
current_working_directory = os.getcwd().replace('/', '/')
for _, _, files in os.walk(current_working_directory):
for , _, files in os.walk(current_working_directory):
for fiso in files:
if fiso.endswith('.iso'):
sha = "sha512sum "
@ -46,8 +46,7 @@ def process_iso(base, arch, desktop):
if files.endswith('.iso'):
src_iso = files
rdes = f"{BASE_NAME}-{base}_{arch}_{desktop.lower()}{today}.iso"
des_iso =(f"{BASE_DESTINATION}/{base.lower()}{arch}"
"/{desktop.lower()}")
des_iso =(f"{BASE_DESTINATION}/{base.lower()}{arch} /{desktop.lower()}")
os.rename(src_iso, rdes)
shutil.copy(rdes, des_iso)
@ -57,8 +56,7 @@ def process_iso(base, arch, desktop):
f"{BASE_NAME}{base.capitalize()}_{arch}_{desktop.lower()}"
"-sha512.checksum"
)
des_sum = (f"{BASE_DESTINATION}/{base.lower()}{arch}"
"/{desktop.lower()}"
des_sum = (f"{BASE_DESTINATION}/{base.lower()}{arch}"/{desktop.lower()}"
)
os.rename(src_sum, rdes_sum)
shutil.copy(rdes_sum, des_sum)