171c37417a436550de9a1476681b3ed251c0bc91 — Julien Floret 3 months ago 35c455d
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 <julien.floret@6wind.com>
Acked-by: Thomas Faivre <thomas.faivre@6wind.com>
1 files changed, 1 insertions(+), 1 deletions(-)

M dlrepo/fs/product.py
M dlrepo/fs/product.py => dlrepo/fs/product.py +1 -1
@@ 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