From 6439ed44dcd2acfab2880da03f6949da481bede1 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 4 Jun 2014 10:00:50 +0000 Subject: try catch apk fetch errors early We cannot grab exitstatus from pipe so run the apk fetch separately to detect errors early --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 83895b0..199f51c 100755 --- a/Makefile +++ b/Makefile @@ -166,6 +166,7 @@ initfs: $(ALL_INITFS) $(INITFS_DIRSTAMP): @rm -rf $(INITFS_DIR) $(INITFS_TMP) @mkdir -p $(INITFS_DIR) $(INITFS_TMP) + @apk fetch $(APK_OPTS) --simulate -R $(INITFS_PKGS) >/dev/null @for i in `apk fetch $(APK_OPTS) --simulate -R $(INITFS_PKGS) \ | sed 's:^Downloading ::; s:-[0-9].*::' | sort | uniq`; do \ echo "Fetching $$i"; \ -- cgit v1.2.3