Updated the devuan section inthe clean up
Signed-off-by: debianpepper <pdpdebdevuan@protonmail.com>
This commit is contained in:
parent
ef464bbf40
commit
67c6301cc7
|
@ -216,214 +216,201 @@ def copy_debian_opb_based():
|
|||
shutil.copy(rdes, des_iso)
|
||||
if f_v.endswith('.checksum'):
|
||||
src_sum = f_v
|
||||
rdes_sum = 'PeppermintOS-Debian_arma_opb-sha512.checksum'
|
||||
rdes_sum = 'PeppermintOS-Debian_arm_opb-sha512.checksum'
|
||||
des_sum = '/var/www/html/nightly/debarm/openbox'
|
||||
os.rename(src_sum, rdes_sum)
|
||||
shutil.copy(rdes_sum, des_sum)
|
||||
|
||||
|
||||
def copy_devuan_xfce_based():
|
||||
""" Copy the new ISO Devuan baseto its Nightly folder
|
||||
""" Copy the new ISO devuan baseto its Nightly folder
|
||||
XFCE
|
||||
"""
|
||||
os.chdir(HOME_FOLDER + FUSATO_ROOT)
|
||||
current_working_directory = os.getcwd()
|
||||
current_working_directory = os.listdir(".")
|
||||
today = str(date.today())
|
||||
for files in os.walk(current_working_directory):
|
||||
for f_v in files:
|
||||
if f_v.endswith('.64xfc'):
|
||||
if f_v.endswith('.iso'):
|
||||
src_iso = current_working_directory + '/' + f_v
|
||||
rdes = (current_working_directory +
|
||||
'/PeppermintOS-Devuan_64_xfce'
|
||||
+ today +
|
||||
'.iso'
|
||||
)
|
||||
des_iso = '/var/www/html/nightly/dev64/xfce'
|
||||
os.rename(src_iso, rdes)
|
||||
shutil.copy(rdes, des_iso)
|
||||
if f_v.endswith('.checksum'):
|
||||
src_sum = current_working_directory + '/' + f_v
|
||||
rdes_sum = (current_working_directory +
|
||||
'/PeppermintOS-Devuan_64-sha512.checksum'
|
||||
)
|
||||
des_sum = '/var/www/html/nightly/dev64/xfce'
|
||||
os.rename(src_sum, rdes_sum)
|
||||
shutil.copy(rdes_sum, des_sum)
|
||||
elif f_v.endswith('.32xfc'):
|
||||
if f_v.endswith('.iso'):
|
||||
src_iso = current_working_directory + '/' + f_v
|
||||
rdes = (current_working_directory +
|
||||
'/PeppermintOS-Devuan_32_xfce'
|
||||
+ today +
|
||||
'.iso'
|
||||
)
|
||||
des_iso = '/var/www/html/nightly/dev32/xfce'
|
||||
os.rename(src_iso, rdes)
|
||||
shutil.copy(rdes, des_iso)
|
||||
if f_v.endswith('.checksum'):
|
||||
src_sum = current_working_directory + '/' + f_v
|
||||
rdes_sum = (current_working_directory +
|
||||
'/PeppermintOS-Devuan_32-sha512.checksum'
|
||||
)
|
||||
des_sum = '/var/www/html/nightly/dev32/xfce'
|
||||
os.rename(src_sum, rdes_sum)
|
||||
shutil.copy(rdes_sum, des_sum)
|
||||
elif f_v.endswith('.armxfc'):
|
||||
if f_v.endswith('.iso'):
|
||||
src_iso = current_working_directory + '/' + f_v
|
||||
rdes = (current_working_directory +
|
||||
'/PeppermintOS-Devuan_arm_xfce'
|
||||
+ today +
|
||||
'.iso'
|
||||
)
|
||||
des_iso = '/var/www/html/nightly/devarm/xfce'
|
||||
os.rename(src_iso, rdes)
|
||||
shutil.copy(rdes, des_iso)
|
||||
if f_v.endswith('.checksum'):
|
||||
src_sum = current_working_directory + '/' + f_v
|
||||
rdes_sum = (current_working_directory +
|
||||
'/PeppermintOS-Devuan_arm-sha512.checksum'
|
||||
)
|
||||
des_sum = '/var/www/html/nightly/devarm/xfce'
|
||||
os.rename(src_sum, rdes_sum)
|
||||
shutil.copy(rdes_sum, des_sum)
|
||||
look_for_file_64 = Path('dev.64xfc')
|
||||
look_for_file_32 = Path('dev.32xfc')
|
||||
look_for_file_arm = Path('dev.armxfc')
|
||||
|
||||
if look_for_file_64.is_file():
|
||||
for f_v in current_working_directory:
|
||||
if f_v.endswith('.iso'):
|
||||
src_iso = f_v
|
||||
rdes = ('PeppermintOS-devuan_64_xfce'
|
||||
+ today +
|
||||
'.iso'
|
||||
)
|
||||
des_iso = '/var/www/html/nightly/dev64/xfce'
|
||||
os.rename(src_iso, rdes)
|
||||
shutil.copy(rdes, des_iso)
|
||||
if f_v.endswith('.checksum'):
|
||||
src_sum = f_v
|
||||
rdes_sum = 'PeppermintOS-devuan_64_xfce-sha512.checksum'
|
||||
des_sum = '/var/www/html/nightly/dev64/xfce'
|
||||
os.rename(src_sum, rdes_sum)
|
||||
shutil.copy(rdes_sum, des_sum)
|
||||
elif look_for_file_32.is_file():
|
||||
for f_v in current_working_directory:
|
||||
if f_v.endswith('.iso'):
|
||||
src_iso = f_v
|
||||
rdes = ('PeppermintOS-devuan_32_xfce'
|
||||
+ today +
|
||||
'.iso'
|
||||
)
|
||||
des_iso = '/var/www/html/nightly/dev32/xfce'
|
||||
os.rename(src_iso, rdes)
|
||||
shutil.copy(rdes, des_iso)
|
||||
if f_v.endswith('.checksum'):
|
||||
src_sum = f_v
|
||||
rdes_sum = 'PeppermintOS-devuan_32_xfce-sha512.checksum'
|
||||
des_sum = '/var/www/html/nightly/dev32/xfce'
|
||||
os.rename(src_sum, rdes_sum)
|
||||
shutil.copy(rdes_sum, des_sum)
|
||||
elif look_for_file_arm.is_file():
|
||||
for f_v in current_working_directory:
|
||||
if f_v.endswith('.iso'):
|
||||
src_iso = f_v
|
||||
rdes = ('PeppermintOS-devuan_arm_xfce'
|
||||
+ today +
|
||||
'.iso'
|
||||
)
|
||||
des_iso = '/var/www/html/nightly/devarm/xfce'
|
||||
os.rename(src_iso, rdes)
|
||||
shutil.copy(rdes, des_iso)
|
||||
if f_v.endswith('.checksum'):
|
||||
src_sum = f_v
|
||||
rdes_sum = 'PeppermintOS-devuan_arma_xfce-sha512.checksum'
|
||||
des_sum = '/var/www/html/nightly/devarm/xfce'
|
||||
os.rename(src_sum, rdes_sum)
|
||||
shutil.copy(rdes_sum, des_sum)
|
||||
|
||||
|
||||
def copy_devuan_gfb_based():
|
||||
""" Copy the new ISO Devuan base to its Nightly folder
|
||||
""" Copy the new ISO devuan base to its Nightly folder
|
||||
Gnome Flashback
|
||||
"""
|
||||
os.chdir(HOME_FOLDER + FUSATO_ROOT)
|
||||
current_working_directory = os.getcwd()
|
||||
current_working_directory = os.listdir(".")
|
||||
today = str(date.today())
|
||||
for files in os.walk(current_working_directory):
|
||||
for f_v in files:
|
||||
if f_v.endswith('.64gfb'):
|
||||
if f_v.endswith('.iso'):
|
||||
src_iso = current_working_directory + '/' + f_v
|
||||
rdes = (current_working_directory +
|
||||
'/PeppermintOS-Devuan_64_gfb'
|
||||
+ today +
|
||||
'.iso'
|
||||
)
|
||||
des_iso = '/var/www/html/nightly/dev64/gnome-flashback'
|
||||
os.rename(src_iso, rdes)
|
||||
shutil.copy(rdes, des_iso)
|
||||
if f_v.endswith('.checksum'):
|
||||
src_sum = current_working_directory + '/' + f_v
|
||||
rdes_sum = (current_working_directory +
|
||||
'/PeppermintOS-Devuan_64-sha512.checksum'
|
||||
)
|
||||
des_sum = '/var/www/html/nightly/dev64/gnome-flashback'
|
||||
os.rename(src_sum, rdes_sum)
|
||||
shutil.copy(rdes_sum, des_sum)
|
||||
elif f_v.endswith('.32gfb'):
|
||||
if f_v.endswith('.iso'):
|
||||
src_iso = current_working_directory + '/' + f_v
|
||||
rdes = (current_working_directory +
|
||||
'/PeppermintOS-Devuan_32_gfb'
|
||||
+ today +
|
||||
'.iso'
|
||||
)
|
||||
des_iso = '/var/www/html/nightly/dev32/gnome-flashback'
|
||||
os.rename(src_iso, rdes)
|
||||
shutil.copy(rdes, des_iso)
|
||||
if f_v.endswith('.checksum'):
|
||||
src_sum = current_working_directory + '/' + f_v
|
||||
rdes_sum = (current_working_directory +
|
||||
'/PeppermintOS-Devuan_32-sha512.checksum'
|
||||
)
|
||||
des_sum = '/var/www/html/nightly/dev32/gnome-flashback'
|
||||
os.rename(src_sum, rdes_sum)
|
||||
shutil.copy(rdes_sum, des_sum)
|
||||
elif f_v.endswith('.armgfb'):
|
||||
if f_v.endswith('.iso'):
|
||||
src_iso = current_working_directory + '/' + f_v
|
||||
rdes = (current_working_directory +
|
||||
'/PeppermintOS-Devuan_arm_gfb'
|
||||
+ today +
|
||||
'.iso'
|
||||
)
|
||||
des_iso = '/var/www/html/nightly/devarm/gnome-flashback'
|
||||
os.rename(src_iso, rdes)
|
||||
shutil.copy(rdes, des_iso)
|
||||
if f_v.endswith('.checksum'):
|
||||
src_sum = current_working_directory + '/' + f_v
|
||||
rdes_sum = (current_working_directory +
|
||||
'/PeppermintOS-Devuan_arm-sha512.checksum'
|
||||
)
|
||||
des_sum = '/var/www/html/nightly/devarm/gnome-flashback'
|
||||
os.rename(src_sum, rdes_sum)
|
||||
shutil.copy(rdes_sum, des_sum)
|
||||
look_for_file_64 = Path('dev.64gfb')
|
||||
look_for_file_32 = Path('dev.32gfb')
|
||||
look_for_file_arm = Path('dev.armgfb')
|
||||
|
||||
if look_for_file_64.is_file():
|
||||
for f_v in current_working_directory:
|
||||
if f_v.endswith('.iso'):
|
||||
src_iso = f_v
|
||||
rdes = ('PeppermintOS-devuan_64_gfb'
|
||||
+ today +
|
||||
'.iso'
|
||||
)
|
||||
des_iso = '/var/www/html/nightly/dev64/gnome-flashback'
|
||||
os.rename(src_iso, rdes)
|
||||
shutil.copy(rdes, des_iso)
|
||||
if f_v.endswith('.checksum'):
|
||||
src_sum = f_v
|
||||
rdes_sum = 'PeppermintOS-devuan_64_gfb-sha512.checksum'
|
||||
des_sum = '/var/www/html/nightly/dev64/gnome-flashback'
|
||||
os.rename(src_sum, rdes_sum)
|
||||
shutil.copy(rdes_sum, des_sum)
|
||||
elif look_for_file_32.is_file():
|
||||
for f_v in current_working_directory:
|
||||
if f_v.endswith('.iso'):
|
||||
src_iso = f_v
|
||||
rdes = ('PeppermintOS-devuan_32_gfb'
|
||||
+ today +
|
||||
'.iso'
|
||||
)
|
||||
des_iso = '/var/www/html/nightly/dev32/gnome-flashback'
|
||||
os.rename(src_iso, rdes)
|
||||
shutil.copy(rdes, des_iso)
|
||||
if f_v.endswith('.checksum'):
|
||||
src_sum = f_v
|
||||
rdes_sum = 'PeppermintOS-devuan_32-sha512.checksum'
|
||||
des_sum = '/var/www/html/nightly/dev32/gnome-flashback'
|
||||
os.rename(src_sum, rdes_sum)
|
||||
shutil.copy(rdes_sum, des_sum)
|
||||
elif look_for_file_arm.is_file():
|
||||
for f_v in current_working_directory:
|
||||
if f_v.endswith('.iso'):
|
||||
src_iso = f_v
|
||||
rdes = ('PeppermintOS-devuan_arm_gfb'
|
||||
+ today +
|
||||
'.iso'
|
||||
)
|
||||
des_iso = '/var/www/html/nightly/devarm/gnome-flashback'
|
||||
os.rename(src_iso, rdes)
|
||||
shutil.copy(rdes, des_iso)
|
||||
if f_v.endswith('.checksum'):
|
||||
src_sum = f_v
|
||||
rdes_sum = 'PeppermintOS-devuan_arm_gfb-sha512.checksum'
|
||||
des_sum = '/var/www/html/nightly/devarm/gnome-flashback'
|
||||
os.rename(src_sum, rdes_sum)
|
||||
shutil.copy(rdes_sum, des_sum)
|
||||
|
||||
def copy_devuan_opb_based():
|
||||
""" Copy the new ISO Devuan base to its Nightly folder
|
||||
""" Copy the new ISO devuan base to its Nightly folder
|
||||
OpenBox
|
||||
"""
|
||||
os.chdir(HOME_FOLDER + FUSATO_ROOT)
|
||||
current_working_directory = os.getcwd()
|
||||
current_working_directory = os.listdir(".")
|
||||
today = str(date.today())
|
||||
for files in os.walk(current_working_directory):
|
||||
for f_v in files:
|
||||
if f_v.endswith('.64opb'):
|
||||
if f_v.endswith('.iso'):
|
||||
src_iso = current_working_directory + '/' + f_v
|
||||
rdes = (current_working_directory +
|
||||
'/PeppermintOS-Devuan_64_opb'
|
||||
+ today +
|
||||
'.iso'
|
||||
)
|
||||
des_iso = '/var/www/html/nightly/dev64/openbox'
|
||||
os.rename(src_iso, rdes)
|
||||
shutil.copy(rdes, des_iso)
|
||||
if f_v.endswith('.checksum'):
|
||||
src_sum = current_working_directory + '/' + f_v
|
||||
rdes_sum = (current_working_directory +
|
||||
'/PeppermintOS-Devuan_64-sha512.checksum'
|
||||
)
|
||||
des_sum = '/var/www/html/nightly/dev64/openbox'
|
||||
os.rename(src_sum, rdes_sum)
|
||||
shutil.copy(rdes_sum, des_sum)
|
||||
elif f_v.endswith('.32opb'):
|
||||
if f_v.endswith('.iso'):
|
||||
src_iso = current_working_directory + '/' + f_v
|
||||
rdes = (current_working_directory +
|
||||
'/PeppermintOS-Devuan_32_opb'
|
||||
+ today +
|
||||
'.iso'
|
||||
)
|
||||
des_iso = '/var/www/html/nightly/dev32/openbox'
|
||||
os.rename(src_iso, rdes)
|
||||
shutil.copy(rdes, des_iso)
|
||||
if f_v.endswith('.checksum'):
|
||||
src_sum = current_working_directory + '/' + f_v
|
||||
rdes_sum = (current_working_directory +
|
||||
'/PeppermintOS-Devuan_32-sha512.checksum'
|
||||
)
|
||||
des_sum = '/var/www/html/nightly/dev32/openbox'
|
||||
os.rename(src_sum, rdes_sum)
|
||||
shutil.copy(rdes_sum, des_sum)
|
||||
elif f_v.endswith('.armopb'):
|
||||
if f_v.endswith('.iso'):
|
||||
src_iso = current_working_directory + '/' + f_v
|
||||
rdes = (current_working_directory +
|
||||
'/PeppermintOS-Devuan_arm_opb'
|
||||
+ today +
|
||||
'.iso'
|
||||
)
|
||||
des_iso = '/var/www/html/nightly/devarm/openbox'
|
||||
os.rename(src_iso, rdes)
|
||||
shutil.copy(rdes, des_iso)
|
||||
if f_v.endswith('.checksum'):
|
||||
src_sum = current_working_directory + '/' + f_v
|
||||
rdes_sum = (current_working_directory +
|
||||
'/PeppermintOS-Devuan_arm-sha512.checksum'
|
||||
)
|
||||
des_sum = '/var/www/html/nightly/devarm/openbox'
|
||||
os.rename(src_sum, rdes_sum)
|
||||
shutil.copy(rdes_sum, des_sum)
|
||||
look_for_file_64 = Path('dev.64opb')
|
||||
look_for_file_32 = Path('dev.32opb')
|
||||
look_for_file_arm = Path('dev.armopb')
|
||||
|
||||
if look_for_file_64.is_file():
|
||||
for f_v in current_working_directory:
|
||||
if f_v.endswith('.iso'):
|
||||
src_iso = f_v
|
||||
rdes = ('PeppermintOS-devuan_64_opb'
|
||||
+ today +
|
||||
'.iso'
|
||||
)
|
||||
des_iso = '/var/www/html/nightly/dev64/openbox'
|
||||
os.rename(src_iso, rdes)
|
||||
shutil.copy(rdes, des_iso)
|
||||
if f_v.endswith('.checksum'):
|
||||
src_sum = f_v
|
||||
rdes_sum = 'PeppermintOS-devuan_64_opb-sha512.checksum'
|
||||
des_sum = '/var/www/html/nightly/dev64/openbox'
|
||||
os.rename(src_sum, rdes_sum)
|
||||
shutil.copy(rdes_sum, des_sum)
|
||||
elif look_for_file_32.is_file():
|
||||
for f_v in current_working_directory:
|
||||
if f_v.endswith('.iso'):
|
||||
src_iso = f_v
|
||||
rdes = ('PeppermintOS-devuan_32_opb'
|
||||
+ today +
|
||||
'.iso'
|
||||
)
|
||||
des_iso = '/var/www/html/nightly/dev32/openbox'
|
||||
os.rename(src_iso, rdes)
|
||||
shutil.copy(rdes, des_iso)
|
||||
if f_v.endswith('.checksum'):
|
||||
src_sum = f_v
|
||||
rdes_sum = 'PeppermintOS-devuan_32_opb-sha512.checksum'
|
||||
des_sum = '/var/www/html/nightly/dev32/openbox'
|
||||
os.rename(src_sum, rdes_sum)
|
||||
shutil.copy(rdes_sum, des_sum)
|
||||
elif look_for_file_arm.is_file():
|
||||
for f_v in current_working_directory:
|
||||
if f_v.endswith('.iso'):
|
||||
src_iso = f_v
|
||||
rdes = ('PeppermintOS-devuan_arm_opb'
|
||||
+ today +
|
||||
'.iso'
|
||||
)
|
||||
des_iso = '/var/www/html/nightly/devarm/openbox'
|
||||
os.rename(src_iso, rdes)
|
||||
shutil.copy(rdes, des_iso)
|
||||
if f_v.endswith('.checksum'):
|
||||
src_sum = f_v
|
||||
rdes_sum = 'PeppermintOS-devuan_arm_opb-sha512.checksum'
|
||||
des_sum = '/var/www/html/nightly/devarm/openbox'
|
||||
os.rename(src_sum, rdes_sum)
|
||||
shutil.copy(rdes_sum, des_sum)
|
||||
|
||||
|
||||
def kill_old_iso():
|
||||
|
|
Loading…
Reference in New Issue