feat: ajouts get testing et corrections
This commit is contained in:
19
udib.py
19
udib.py
@@ -7,10 +7,10 @@ from tempfile import TemporaryDirectory
|
||||
|
||||
from cli.clibella import Printer
|
||||
from cli.parser import get_argument_parser
|
||||
from core.utils import assert_system_dependencies_installed, download_and_verify_debian_iso
|
||||
from core.utils import assert_system_dependencies_installed, download_and_verify_debian_iso, download_and_verify_debian_testing_iso
|
||||
from iso.injection import inject_files_into_iso
|
||||
from net.download import download_file
|
||||
from net.scrape import get_debian_preseed_file_urls, get_debian_iso_urls
|
||||
from net.scrape import get_debian_preseed_file_urls, get_debian_iso_urls, get_debian_testing_iso_urls
|
||||
|
||||
|
||||
def main():
|
||||
@@ -109,6 +109,21 @@ def main():
|
||||
p.success(f"Debian ISO saved to '{path_to_output_file}'.")
|
||||
exit(0)
|
||||
|
||||
elif args.WHAT == "iso-testing":
|
||||
# download and verify testing installation image
|
||||
p.info("Downloading latest Debian testing x86-64 netinst ISO...")
|
||||
|
||||
if not path_to_output_file:
|
||||
output_file_name = get_debian_testing_iso_urls()["image_file"]["name"]
|
||||
if path_to_output_dir:
|
||||
path_to_output_file = path_to_output_dir / output_file_name
|
||||
else:
|
||||
path_to_output_file = Path.cwd() / output_file_name
|
||||
|
||||
download_and_verify_debian_testing_iso(path_to_output_file, printer=p)
|
||||
p.success(f"Debian testing ISO saved to '{path_to_output_file}'.")
|
||||
exit(0)
|
||||
|
||||
elif args.subparser_name == "inject":
|
||||
|
||||
# verify image file path if set by user or download fresh iso if unset
|
||||
|
||||
Reference in New Issue
Block a user