commit 15c564cf9ac03a8d79467301108e0bf6676c7047
parent 2d2a78d196695f1a62a8a578c3565e2a4bf1faf4
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Fri, 19 Jul 2024 11:21:12 +0200
Update spkg mirror target
Delete the archives to force them to be downloaded each time the
"mirror" target is run. This is a simple way of remedying corruption of
downloaded data: download them again.
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/spkg.mk.in b/src/spkg.mk.in
@@ -30,7 +30,10 @@ uninstall_@NAME@: prefix
distclean_@NAME@:
rm -rf "$(CACHE)/@ARCH@.tgz" "$(CACHE)/@ARCH@.sha512sum"
-mirror_@NAME@: $(MIRROR)/@ARCH@.tgz $(MIRROR)/@ARCH@.sha512sum
+mirror_clean_@NAME@:
+ rm -rf $(MIRROR)/@ARCH@.tgz $(MIRROR)/@ARCH@.sha512sum
+
+mirror_@NAME@: mirror_clean_@NAME@ $(MIRROR)/@ARCH@.tgz $(MIRROR)/@ARCH@.sha512sum
distclean_all: distclean_@NAME@
install_all: @NAME@