From 3e88edf975e80b40aa752935b17503e3f239d1f5 Mon Sep 17 00:00:00 2001 From: Anson Mansfield Date: Tue, 17 Feb 2026 18:05:41 -0500 Subject: [PATCH] micropython: hardcode _PACKAGE_INDEX value for robust patching Signed-off-by: Anson Mansfield --- micropython/patches/mip-offline.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/micropython/patches/mip-offline.patch b/micropython/patches/mip-offline.patch index 7cc4b9a..5d2b216 100644 --- a/micropython/patches/mip-offline.patch +++ b/micropython/patches/mip-offline.patch @@ -8,7 +8,7 @@ + return cls(url) + def __init__(self, url): + import sys -+ path = url.replace(_PACKAGE_INDEX, sys.executable.replace("bin/micropython", "mip")) ++ path = url.replace("https://micropython.org/pi/v2", sys.executable.replace("bin/micropython", "mip")) + try: + self.raw = open(path, "rb") + self.status_code = 200