Fixed the Archives process for the repo keys
Signed-off-by: debianpepper <pdpdebdevuan@protonmail.com>
This commit is contained in:
parent
7df1dd8007
commit
42dba5a43a
Binary file not shown.
Binary file not shown.
|
@ -21,6 +21,7 @@ HOME_FOLDER = str(Path(BSTRING_ISO_CONFIGS).expanduser())
|
|||
WPCHROOT = "/fusato/config/includes.chroot"
|
||||
BINARYPTH = "/fusato/config/includes.binary"
|
||||
BOOTSTRAP = "/fusato/config/includes.bootstrap"
|
||||
ARCHIVES = "/fusato/config/archives"
|
||||
FUSATOCONFIG = "/fusato/config"
|
||||
|
||||
# Set up the logging format
|
||||
|
@ -30,6 +31,32 @@ MSG_FIN = "Finished - "
|
|||
|
||||
|
||||
|
||||
class Archive:
|
||||
"""
|
||||
Copy the miltimedia to the ARCHIVES folder Depending on
|
||||
the architecture it will, copy folders as needed
|
||||
"""
|
||||
def __init__(self,sbase,sarch):
|
||||
logger.info("Copy Archive")
|
||||
self.sbase = sbase
|
||||
self.sarch = sarch
|
||||
src_archive = ('/multimedia/' + self.sbase + self.sarch
|
||||
des_archive =('config/archives ')
|
||||
# Archives Folders.
|
||||
archive_src_q = collections.deque(src_archive)
|
||||
archive_des_q = collections.deque(des_archive)
|
||||
archive_size_q = len(archive_src_q)
|
||||
for size_length in range(chroot_size_q):
|
||||
source = archive_src_q.popleft()
|
||||
des = archive_des_q.popleft()
|
||||
logger.info(MSG_COPY + HOME_FOLDER + source)
|
||||
shutil.copytree(HOME_FOLDER + source,
|
||||
HOME_FOLDER + ARCHIVES + des,
|
||||
dirs_exist_ok = True
|
||||
)
|
||||
logger.info(MSG_FIN + HOME_FOLDER + ARCHIVES + des)
|
||||
|
||||
|
||||
class ChrootFolders:
|
||||
"""
|
||||
Copy all the needed folders to CHROOT Depending on
|
||||
|
@ -76,7 +103,6 @@ class BinaryFolders:
|
|||
def __init__(self, sbase, sarch):
|
||||
|
||||
logger.info("Copy Binary")
|
||||
|
||||
self.sbase = sbase
|
||||
self.sarch = sarch
|
||||
src_binary = ('/splash/' + self.sbase + self.sarch + '/boot',
|
||||
|
@ -298,8 +324,6 @@ def icons_themes():
|
|||
logger.info(MSG_FIN + HOME_FOLDER + WPCHROOT + des)
|
||||
|
||||
|
||||
|
||||
|
||||
def shared_files():
|
||||
"""
|
||||
This silll copy all specific files that a used for all
|
||||
|
@ -317,8 +341,8 @@ def shared_files():
|
|||
'/lightdm/lightdm.conf',
|
||||
'/lightdm/lightdm-gtk-greeter.conf',
|
||||
'/plymouth/plymouthd.conf',
|
||||
'/packages/deb-multimedia-keyring_2016.8.1_all.deb',
|
||||
'/repo_public_key/trusted.gpg',
|
||||
#'/packages/deb-multimedia-keyring_2016.8.1_all.deb',
|
||||
#'/repo_public_key/trusted.gpg',
|
||||
|
||||
|
||||
)
|
||||
|
@ -331,8 +355,8 @@ def shared_files():
|
|||
'/etc/lightdm/lightdm.conf',
|
||||
'/etc/lightdm/lightdm-gtk-greeter.conf',
|
||||
'/usr/share/plymouthd.conf',
|
||||
'/opt/pepconf/deb-multimedia-keyring_2016.8.1_all.deb',
|
||||
'/etc/apt/trusted.gpg.d/trusted.gpg',
|
||||
#'/opt/pepconf/deb-multimedia-keyring_2016.8.1_all.deb',
|
||||
#'/etc/apt/trusted.gpg.d/trusted.gpg',
|
||||
|
||||
)
|
||||
# copy files to thier CHROOT Location
|
||||
|
|
Loading…
Reference in New Issue