From 2a5acb94f00d0ba1418ff473cdc26c0be4daa04b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Eric=20M=C3=BCller?= <mueller@kip.uni-heidelberg.de>
Date: Tue, 10 Dec 2024 11:02:40 +0100
Subject: [PATCH] fix: skip installed packages

---
 lib/yashchiki/specfile_storage_path.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/yashchiki/specfile_storage_path.py b/lib/yashchiki/specfile_storage_path.py
index ef0999e4..1d5b13dc 100644
--- a/lib/yashchiki/specfile_storage_path.py
+++ b/lib/yashchiki/specfile_storage_path.py
@@ -30,8 +30,8 @@ for rspec in data:
     
     for ss in maybe_to_be_fetched:
         # we could skip sources for already installed packages?
-        #if ss.installed:
-        #    continue
+        if ss.installed:
+            continue
         pkg = ss.package
         to_be_fetched.append(pkg)
         print(spack.mirror.mirror_archive_paths(pkg.fetcher, 'whatever').storage_path)
-- 
GitLab