From 171c37417a436550de9a1476681b3ed251c0bc91 Mon Sep 17 00:00:00 2001 From: Julien Floret Date: Tue, 18 Oct 2022 10:58:04 +0200 Subject: [PATCH] fs: fix stable info for product version The ".stable" file is located in the _tag_ related to the product version, not the job. Fixes: 880c5ac4b502 ("tag: decorrelate stable and released statuses") Signed-off-by: Julien Floret Acked-by: Thomas Faivre --- dlrepo/fs/product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlrepo/fs/product.py b/dlrepo/fs/product.py index b6da9f4..4c05440 100644 --- a/dlrepo/fs/product.py +++ b/dlrepo/fs/product.py @@ -127,7 +127,7 @@ class Version(SubDir): def is_stable(self) -> bool: for fmt in self.get_formats(): - stable_path = fmt.path().resolve().parent / ".stable" + stable_path = fmt.path().resolve().parent.parent / ".stable" if stable_path.is_file(): return True return False -- 2.38.4