aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-12-01 09:34:33 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-12-01 09:34:33 +0000
commitd3e928aa397731f7661bad5e7fc73095002cc026 (patch)
tree66d31a2ef46ec5535f9029d207bb519f7b6559cd
parente59bc5c038f0636ea36886caf99fc6f861469a5d (diff)
downloadalpine-iso-d3e928aa397731f7661bad5e7fc73095002cc026.tar.bz2
alpine-iso-d3e928aa397731f7661bad5e7fc73095002cc026.tar.xz
clean repo if it failed to download
-rwxr-xr-xMakefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f25c014..5829161 100755
--- a/Makefile
+++ b/Makefile
@@ -288,7 +288,7 @@ $(ISO_PKGDIR)/APKINDEX.tar.gz: $(PROFILE).packages
sed -e 's/\#.*//' $< \
| xargs apk fetch $(APK_OPTS) \
--output $(ISO_PKGDIR) \
- --recursive
+ --recursive || { rm $(ISO_PKGDIR)/*.apk; exit 1; }
@apk index --description "$(ALPINE_NAME) $(ALPINE_RELEASE)" \
--rewrite-arch $(ALPINE_ARCH) -o $@ $(ISO_PKGDIR)/*.apk
@abuild-sign $@