From ccfc94e8fb1946a3f08dc43e4a027bc6f2995573 Mon Sep 17 00:00:00 2001 From: Chris Osborn Date: Sat, 25 Oct 2025 17:15:57 -0700 Subject: [PATCH] Fix version number finding regex, don't try to download zip if we already have it --- Makefile | 1 + makefiles/fnlib.py | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f9442e47..116297b3 100644 --- a/Makefile +++ b/Makefile @@ -30,6 +30,7 @@ SRC_DIRS = src src/%PLATFORM% # - empty which will use whatever is the latest # - undefined, no fujinet-lib will be used FUJINET_LIB = +$(info FUJUNET_LIB=$(FUJINET_LIB)) # Some platforms don’t use FUJINET_LIB; set this to allow builds to continue # even if the library isn’t present. diff --git a/makefiles/fnlib.py b/makefiles/fnlib.py index b1a25175..03aa0374 100755 --- a/makefiles/fnlib.py +++ b/makefiles/fnlib.py @@ -87,7 +87,7 @@ def __init__(self, FUJINET_LIB, PLATFORM, COMBOS, skipIfMissing=False): self.LIBRARY_REGEX = [] for platform in self.possiblePlatforms: self.LIBRARY_REGEX.extend([ - fr"fujinet[-.]({platform})(-{VERSION_NUM_RE})?[.]lib$", + fr"fujinet[-.]({platform})-({VERSION_NUM_RE})?[.]lib$", fr"fujinet[.]lib[.]({platform})$", fr"libfujinet[.]({platform})[.]a$", ]) @@ -114,7 +114,8 @@ def __init__(self, FUJINET_LIB, PLATFORM, COMBOS, skipIfMissing=False): if not self.MV.FUJINET_LIB_DIR: self.getDirectory() - if not self.MV.FUJINET_LIB_FILE: + if not self.MV.FUJINET_LIB_FILE \ + and (not self.MV.FUJINET_LIB_ZIP or not os.path.exists(self.MV.FUJINET_LIB_ZIP)): self.downloadZip() if not self.MV.FUJINET_LIB_INCLUDE: