Skip to content

Commit

Permalink
fixup! 403 download
Browse files Browse the repository at this point in the history
  • Loading branch information
Sjors committed Jan 30, 2025
1 parent f3f4685 commit 5b0f3b5
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions depends/funcs.mk
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,16 @@ define fetch_file
endef

define fetch_local_dir_sha256
if ! [ -f $($(1)_fetched) ] || ! [ -f $($(1)_source) ] || [ $($(1)_source) -ot $($(1)_local_dir) ]; then \
mkdir -p $(dir $($(1)_fetched)); \
if ! [ -f $($(1)_source) ] || [ $($(1)_source) -ot $($(1)_local_dir) ]; then \
mkdir -p $(dir $($(1)_source)) && \
$(build_TAR) -c -f $($(1)_source) -C $($(1)_local_dir) . && \
rm -f $($(1)_fetched); \
fi && \
if ! [ -f $($(1)_fetched) ]; then \
mkdir -p $(dir $($(1)_fetched)) && \
$(build_SHA256SUM) $($(1)_source) > $($(1)_fetched); \
fi; \
cut -d" " -f1 $($(1)_fetched);
fi && \
cut -d" " -f1 $($(1)_fetched)
endef

define int_get_build_recipe_hash
Expand Down

0 comments on commit 5b0f3b5

Please sign in to comment.