Tryingout dequeues

Signed-off-by: debianpepper <peppermintosteam@proton.me>
This commit is contained in:
debianpepper 2023-08-05 20:01:58 +09:00
parent d521c418fb
commit 9bdd870ff1
2 changed files with 37 additions and 29 deletions

View File

@ -1,5 +1,35 @@
### Inflate bubble section
import paths
src_paths = [paths.src_deb64_osrelease,
paths.src_deb64_osrelease,
paths.src_deb64_slpash,
paths.src_deb64_isolinux,
paths.src_deb64_multi,
paths.src_deb_grub_theme,
paths.src_deb64_modules,
paths.src_deb_splash_image,
paths.src_deb_splash_image,
paths.src_deb_live_theme
]
des_paths =[paths.des_osrelease,
paths.des_osrelease_opt,
paths.des_splash,
paths.des_isolinux,
paths.des_archives,
paths.des_grub_theme,
paths.des_modules,
paths.des_splash_image_isolinux,
paths.des_splash_image_grub,
paths.des_live_theme
]
### Inflate bubble section
env_list =('xfce4')

View File

@ -14,7 +14,7 @@ import inflate_bubble
import finish_cleanup
import copy_folders
import copy_files_specified
import queue
import collections
# Set the home path used regardless the user logged in
BSTRING = paths.bstring_iso_configs
@ -40,34 +40,12 @@ def lbinit():
def copy_deb64_specific():
"""" Debian 64 copy jobs"""
source_q = queue.Queue()
destination_q = queue.Queue()
source_q.put(paths.src_deb64_osrelease)
source_q.put(paths.src_deb64_osrelease)
source_q.put(paths.src_deb64_slpash)
source_q.put(paths.src_deb64_isolinux)
source_q.put(paths.src_deb64_multi)
source_q.put(paths.src_deb_grub_theme)
source_q.put(paths.src_deb64_modules)
source_q.put(paths.src_deb_splash_image)
source_q.put(paths.src_deb_splash_image)
source_q.put(paths.src_deb_live_theme)
destination_q.put(paths.des_osrelease)
destination_q.put(paths.des_osrelease_opt)
destination_q.put(paths.des_splash)
destination_q.put(paths.des_isolinux)
destination_q.put(paths.des_archives)
destination_q.put(paths.des_grub_theme)
destination_q.put(paths.des_modules)
destination_q.put(paths.des_splash_image_isolinux)
destination_q.put(paths.des_splash_image_grub)
destination_q.put(paths.des_live_theme)
src_size = source_q.qsize()
source_q = collections.deque(conf.src_paths)
destination_q = collections.deque(conf.des_paths)
src_size = len(source_q)
for p in range(src_size):
x = source_q.get()
y = destination_q.get()
x = source_q.popleft()
y = destination_q.popleft()
shutil.copytree(cur_dir + x,
WP_CHROOT + y,
dirs_exist_ok=True