Skip to content

Commit

Permalink
fixup! package fetch debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Sjors committed Jan 31, 2025
1 parent 5b0f3b5 commit edc1fd4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion depends/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,9 @@ endef

define check_or_remove_sources
mkdir -p $($(package)_source_dir); cd $($(package)_source_dir); \
test -f $($(package)_fetched) && ( $(build_SHA256SUM) -c $($(package)_fetched) >/dev/null 2>/dev/null || \
test -f $($(package)_fetched) && ( $(build_SHA256SUM) -c $($(package)_fetched) >/dev/null || \
( echo "Checksum missing or mismatched for $(package) source. Forcing re-download."; \
set -x; cat $($(package)_fetched); : $($(package)_sha256_hash); ls -ld --full-time $(CURDIR)/$($(package)_local_dir) $($(package)_fetched) $($(package)_source); \
rm -f $($(package)_all_sources) $($(1)_fetched))) || true
endef

Expand Down
2 changes: 1 addition & 1 deletion depends/funcs.mk
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ define fetch_file
endef

define fetch_local_dir_sha256
if ! [ -f $($(1)_source) ] || [ $($(1)_source) -ot $($(1)_local_dir) ]; then \
set -x; 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); \
Expand Down

0 comments on commit edc1fd4

Please sign in to comment.