Testing:Modules
Signed-off-by: debianpepper <pdpdebdevuan@protonmail.com>
This commit is contained in:
parent
04547301ce
commit
1173708c9a
|
@ -46,18 +46,15 @@ def process_iso(base, arch, desktop):
|
||||||
if files.endswith('.iso'):
|
if files.endswith('.iso'):
|
||||||
src_iso = files
|
src_iso = files
|
||||||
rdes = f"{BASE_NAME}-{base}_{arch}_{desktop.lower()}{today}.iso"
|
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)
|
os.rename(src_iso, rdes)
|
||||||
shutil.copy(rdes, des_iso)
|
shutil.copy(rdes, des_iso)
|
||||||
|
|
||||||
elif files.endswith('.checksum'):
|
elif files.endswith('.checksum'):
|
||||||
src_sum = files
|
src_sum = files
|
||||||
rdes_sum = (
|
rdes_sum = f"{BASE_NAME}{base.capitalize()}_{arch}_{desktop.lower()}-sha512.checksum"
|
||||||
f"{BASE_NAME}{base.capitalize()}_{arch}_{desktop.lower()}"
|
des_sum = f"{BASE_DESTINATION}/{base.lower()}{arch}/{desktop.lower()}"
|
||||||
"-sha512.checksum"
|
|
||||||
)
|
|
||||||
des_sum = (f"{BASE_DESTINATION}/{base.lower()}{arch}"/{desktop.lower()}"
|
|
||||||
)
|
|
||||||
os.rename(src_sum, rdes_sum)
|
os.rename(src_sum, rdes_sum)
|
||||||
shutil.copy(rdes_sum, des_sum)
|
shutil.copy(rdes_sum, des_sum)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue