From e898fe03fc73ba0a2abdf7c58af5107693aa1b85 Mon Sep 17 00:00:00 2001 From: derrod Date: Wed, 9 Sep 2020 10:13:21 +0200 Subject: [PATCH] [downloader] Remove delta manifest workarounds --- legendary/downloader/manager.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/legendary/downloader/manager.py b/legendary/downloader/manager.py index 60293a0..772aa02 100644 --- a/legendary/downloader/manager.py +++ b/legendary/downloader/manager.py @@ -79,7 +79,7 @@ class DLManager(Process): def run_analysis(self, manifest: Manifest, old_manifest: Manifest = None, patch=True, resume=True, file_prefix_filter=None, file_exclude_filter=None, file_install_tag=None, - processing_optimization=False, delta_manifest_used=False) -> AnalysisResult: + processing_optimization=False) -> AnalysisResult: """ Run analysis on manifest and old manifest (if not None) and return a result with a summary resources required in order to install the provided manifest. @@ -92,7 +92,6 @@ class DLManager(Process): :param file_exclude_filter: Exclude files with this prefix from download :param file_install_tag: Only install files with the specified tag :param processing_optimization: Attempt to optimize processing order and RAM usage - :param delta_manifest_used: whether or not the manifest is a delta manifest :return: AnalysisResult """ @@ -182,10 +181,6 @@ class DLManager(Process): analysis_res.install_size = sum(fm.file_size for fm in manifest.file_manifest_list.elements if fm.filename in mc.added) - # todo properly handle delta manifests - if delta_manifest_used: - mc.removed = set() - if mc.removed: analysis_res.removed = len(mc.removed) self.log.debug(f'{analysis_res.removed} removed files')