From c3151fe23b8c6fa5f54fc2f59cb676ab3018b353 Mon Sep 17 00:00:00 2001 From: J08nY Date: Sun, 2 Feb 2025 12:24:58 +0100 Subject: Remove processed_pp_dataset_root_dir, let PP dataset handler figure out the dset existence. --- src/sec_certs/dataset/cc.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/sec_certs/dataset/cc.py b/src/sec_certs/dataset/cc.py index 41bb62ac..1bf25994 100644 --- a/src/sec_certs/dataset/cc.py +++ b/src/sec_certs/dataset/cc.py @@ -248,7 +248,6 @@ class CCDataset(Dataset[CCCertificate], ComplexSerializableType): def process_auxiliary_datasets( self, download_fresh: bool = False, - processed_pp_dataset_root_dir: Path | None = None, skip_schemes: bool = False, **kwargs, ) -> None: @@ -259,17 +258,6 @@ class CCDataset(Dataset[CCCertificate], ComplexSerializableType): if CCSchemeDatasetHandler in self.aux_handlers: self.aux_handlers[CCSchemeDatasetHandler].only_schemes = {x.scheme for x in self} # type: ignore - if processed_pp_dataset_root_dir: - if self.aux_handlers[ProtectionProfileDatasetHandler].root_dir.exists(): - logger.warning( - f"Overwriting PP Dataset at {self.aux_handlers[ProtectionProfileDatasetHandler].root_dir} with dataset from {processed_pp_dataset_root_dir}." - ) - shutil.copytree( - processed_pp_dataset_root_dir, - self.aux_handlers[ProtectionProfileDatasetHandler].root_dir, - dirs_exist_ok=True, - ) - if skip_schemes: self.aux_handlers[CCSchemeDatasetHandler].only_schemes = {} # type: ignore super().process_auxiliary_datasets(download_fresh, **kwargs) @@ -820,7 +808,6 @@ class CCDatasetMaintenanceUpdates(CCDataset, ComplexSerializableType): def process_auxiliary_datasets( self, download_fresh: bool = False, - processed_pp_dataset_root_dir: Path | None = None, skip_schemes: bool = False, **kwargs, ) -> None: -- cgit v1.3.1