aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-06-04 10:00:50 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-06-04 10:03:53 +0000
commit6439ed44dcd2acfab2880da03f6949da481bede1 (patch)
tree10ad2c1d777bf5c3b289efa5ca4cd93fc6297812 /Makefile
parentf975754550c90804a94824b255ddbb6a8d43ac78 (diff)
downloadalpine-iso-6439ed44dcd2acfab2880da03f6949da481bede1.tar.bz2
alpine-iso-6439ed44dcd2acfab2880da03f6949da481bede1.tar.xz
try catch apk fetch errors early
We cannot grab exitstatus from pipe so run the apk fetch separately to detect errors early
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile1
1 files changed, 1 insertions, 0 deletions
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"; \