From 43bc54cae13a790a35a1d42518f1323ad1806ff3 Mon Sep 17 00:00:00 2001 From: iamashwin99 <ashwin-kumar.karnad@mpsd.mpg.de> Date: Fri, 22 Dec 2023 15:04:05 +0100 Subject: [PATCH] Add cache decorator to get_important_folders function --- src/mpsd_software_manager/utils/filesystem_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mpsd_software_manager/utils/filesystem_utils.py b/src/mpsd_software_manager/utils/filesystem_utils.py index 9021ae1..284f1c7 100644 --- a/src/mpsd_software_manager/utils/filesystem_utils.py +++ b/src/mpsd_software_manager/utils/filesystem_utils.py @@ -6,7 +6,7 @@ from pathlib import Path from mpsd_software_manager import config_vars from mpsd_software_manager.utils.microarch import get_native_microarchitecture - +from functools import cache from .run import run @@ -131,7 +131,7 @@ def clone_repo( else: run(["git", "pull"], check=True, capture_output=capture_output) - +@cache def get_important_folders( mpsd_release: str, root_dir: Path, -- GitLab