Signed-off-by: debianpepper <pdpdebdevuan@protonmail.com>
This commit is contained in:
debianpepper 2023-08-26 20:35:16 +09:00
parent 1b5f8fe806
commit dcf68a56df
1 changed files with 23 additions and 1 deletions

View File

@ -40,7 +40,9 @@ class ChrootFolders:
the architecture it will, copy folders as needed
"""
def __init__(self,sbase,sarch):
print('=' * term_size.columns)
print("Copy Chroot")
print('=' * term_size.columns)
self.sbase = sbase
self.sarch = sarch
src_chroot = ('/osrelease/' + self.sbase + self.sarch,
@ -78,7 +80,9 @@ class BinaryFolders:
the architecture it will, copy folders as needed
"""
def __init__(self, sbase, sarch):
print('=' * term_size.columns)
print("Copy Binary")
print('=' * term_size.columns)
self.sbase = sbase
self.sarch = sarch
src_binary = ('/splash/' + self.sbase + self.sarch + '/boot',
@ -114,7 +118,9 @@ class ArchitectureFiles:
architecture it will, copy files as needed
"""
def __init__(self, sbase, sarch):
print('=' * term_size.columns)
print("Copy Architecture")
print('=' * term_size.columns)
self.sbase = sbase
self.sarch = sarch
calamares_path = '/calamares_settings/'
@ -159,7 +165,9 @@ def set_symlinks():
"""
Set the symliknks that are used for all builds.
"""
print('=' * term_size.columns)
print("Copy symlinks")
print('=' * term_size.columns)
pep_info = '/usr/share/python-apt/templates/Peppermint.info'
pep_mirror = '/usr/share/python-apt/templates/Peppermint.mirrors'
pep_csv = '/usr/share/distro-info/peppermint.csv'
@ -173,7 +181,9 @@ def shared_folders():
This function will get the files that are shared commonly amongst
all the builds,
"""
print('=' * term_size.columns)
print("Copy Shared folders")
print('=' * term_size.columns)
src_paths = ('/plymouth/lines',
'/application',
'/font',
@ -237,7 +247,9 @@ def icons_themes():
This function will get the icons and themse that are
for all the builds
"""
print('=' * term_size.columns)
print("Copy icons and themes")
print('=' * term_size.columns)
src_paths =('/theme/Marwaita Dark Debian/',
'/theme/Marwaita Dark Manjaro/',
'/theme/Marwaita Dark Peppermint/',
@ -289,7 +301,10 @@ def shared_files():
This silll copy all specific files that a used for all
builds.
"""
term_size = os.get_terminal_size()
print('=' * term_size.columns)
print("Copy Shared Files")
print('=' * term_size.columns)
src_paths = ('/aliases/bash_aliases',
'/PepProTools/xDaily',
'/PepProTools/hub',
@ -328,7 +343,9 @@ def fusato_configs():
"""
Copy specific folders in the root of fusato configs
"""
print('=' * term_size.columns)
print("Copy Fusato Configs")
print('=' * term_size.columns)
src_paths = ('/hooks/normal',)
des_paths = ('/hooks/normal',)
src_q = collections.deque(src_paths)
@ -352,6 +369,7 @@ def boostrap_shared():
term_size = os.get_terminal_size()
print('=' * term_size.columns)
print("Copy Shared BootStrap")
print('=' * term_size.columns)
src_paths = ('/issue',)
des_paths = ('/etc',)
src_q = collections.deque(src_paths)
@ -372,7 +390,9 @@ def xfce_configs():
"""
Copy the xfce files.
"""
print("####Copy xfce4 configs####")
print('=' * term_size.columns)
print("Copy xfce4 configs")
print('=' * term_size.columns)
src_xfce = '/xfce/xfce4'
des_xfce = '/etc/skel/.config/xfce4'
print("INFO: Copying - " + HOME_FOLDER + src_xfce)
@ -395,7 +415,9 @@ def gnome_flahsbak_configs():
"""
Copy the gnome flashback files
"""
print('=' * term_size.columns)
print("Copy Gnome Flashback configs")
print('=' * term_size.columns)
src_gnomef = '/gnome-flashback'
des_gnomef = '/etc/skel/.config/gnome-flashback'
print("INFO: Copying - " + HOME_FOLDER + source)