Fix curl error handling in Makefiles
Add option -f to make curl fail on server errors. Fixes #7.
This commit is contained in:
parent
67c3fa4a82
commit
d785e48a55
11 changed files with 21 additions and 21 deletions
|
@ -13,11 +13,11 @@ manifest: $(MANIFESTS)/abusehelper.pp
|
|||
|
||||
$(PACKAGES)/$(AHTARGET):
|
||||
@umask 022; echo $@; \
|
||||
test -f $@ || curl -o $@ $(AHSOURCE)
|
||||
test -f $@ || curl -f -o $@ $(AHSOURCE)
|
||||
|
||||
$(PACKAGES)/$(IKTARGET):
|
||||
@umask 022; echo $@; \
|
||||
test -f $@ || curl -o $@ $(IKSOURCE)
|
||||
test -f $@ || curl -f -o $@ $(IKSOURCE)
|
||||
|
||||
$(MANIFESTS)/abusehelper.pp: $(PACKAGES)/$(AHTARGET) $(PACKAGES)/$(IKTARGET)
|
||||
@umask 022; echo $@; \
|
||||
|
|
|
@ -18,7 +18,7 @@ searchmanifest: $(MANIFESTS)/abusesa_search.pp
|
|||
|
||||
$(PACKAGES)/$(TARGET):
|
||||
@umask 022; echo $@; \
|
||||
test -f $@ || curl --digest -u $(USER) -o $@ $(SOURCE)
|
||||
test -f $@ || curl -f --digest -u $(USER) -o $@ $(SOURCE)
|
||||
|
||||
$(MANIFESTS)/abusesa.pp: $(PACKAGES)/$(TARGET)
|
||||
@umask 022; echo $@; \
|
||||
|
@ -26,7 +26,7 @@ $(MANIFESTS)/abusesa.pp: $(PACKAGES)/$(TARGET)
|
|||
|
||||
$(PACKAGES)/$(SEARCHTARGET):
|
||||
@umask 022; echo $@; \
|
||||
test -f $@ || curl --digest -u $(USER) -o $@ $(SEARCHSOURCE)
|
||||
test -f $@ || curl -f --digest -u $(USER) -o $@ $(SEARCHSOURCE)
|
||||
|
||||
$(MANIFESTS)/abusesa_search.pp: $(PACKAGES)/$(SEARCHTARGET)
|
||||
@umask 022; echo $@; \
|
||||
|
|
|
@ -14,11 +14,11 @@ manifest: $(MANIFESTS)/arduino.pp
|
|||
|
||||
$(PACKAGES)/$(TARGET32):
|
||||
@umask 022; echo $@; \
|
||||
test -f $@ || curl -o $@ $(SOURCE32)
|
||||
test -f $@ || curl -f -o $@ $(SOURCE32)
|
||||
|
||||
$(PACKAGES)/$(TARGET64):
|
||||
@umask 022; echo $@; \
|
||||
test -f $@ || curl -o $@ $(SOURCE64)
|
||||
test -f $@ || curl -f -o $@ $(SOURCE64)
|
||||
|
||||
$(MANIFESTS)/arduino.pp: $(PACKAGES)/$(TARGET32) $(PACKAGES)/$(TARGET64)
|
||||
@umask 022; echo $@; \
|
||||
|
|
|
@ -10,7 +10,7 @@ manifest: $(MANIFESTS)/bacula.pp
|
|||
|
||||
$(PACKAGES)/$(PACKAGE):
|
||||
@umask 022 ; echo $@ ; \
|
||||
curl -o $@ $(BASEURL)/$(PACKAGE)
|
||||
curl -f -o $@ $(BASEURL)/$(PACKAGE)
|
||||
|
||||
$(MANIFESTS)/bacula.pp:
|
||||
@umask 022 ; echo $@ ; \
|
||||
|
|
|
@ -12,22 +12,22 @@ manifest: $(MANIFESTS)/flexlm.pp
|
|||
|
||||
$(PACKAGES)/lmutil-$(VERSION).i386.Linux:
|
||||
@umask 022 ; echo $@; \
|
||||
test -f $@ || curl $(BASEURL)/lmutil-i86_lsb-$(VERSION).tar.gz | \
|
||||
test -f $@ || curl -f $(BASEURL)/lmutil-i86_lsb-$(VERSION).tar.gz | \
|
||||
zcat | tar xf - -O > $@
|
||||
|
||||
$(PACKAGES)/lmgrd-$(VERSION).i386.Linux:
|
||||
@umask 022 ; echo $@; \
|
||||
test -f $@ || curl $(BASEURL)/lmgrd-i86_lsb-$(VERSION).tar.gz | \
|
||||
test -f $@ || curl -f $(BASEURL)/lmgrd-i86_lsb-$(VERSION).tar.gz | \
|
||||
zcat | tar xf - -O > $@
|
||||
|
||||
$(PACKAGES)/lmutil-$(VERSION).x86_64.Linux:
|
||||
@umask 022 ; echo $@; \
|
||||
test -f $@ || curl $(BASEURL)/lmutil-x64_lsb-$(VERSION).tar.gz | \
|
||||
test -f $@ || curl -f $(BASEURL)/lmutil-x64_lsb-$(VERSION).tar.gz | \
|
||||
zcat | tar xf - -O > $@
|
||||
|
||||
$(PACKAGES)/lmgrd-$(VERSION).x86_64.Linux:
|
||||
@umask 022 ; echo $@; \
|
||||
test -f $@ || curl $(BASEURL)/lmgrd-x64_lsb-$(VERSION).tar.gz | \
|
||||
test -f $@ || curl -f $(BASEURL)/lmgrd-x64_lsb-$(VERSION).tar.gz | \
|
||||
zcat | tar xf - -O > $@
|
||||
|
||||
$(MANIFESTS)/flexlm.pp: download
|
||||
|
|
|
@ -9,7 +9,7 @@ manifest: $(MANIFESTS)/hastymail.pp
|
|||
|
||||
$(PACKAGES)/$(HASTYMAILTARGET):
|
||||
@umask 022; echo $@; \
|
||||
test -f $@ || curl -o $@ $(HASTYMAILSOURCE)
|
||||
test -f $@ || curl -f -o $@ $(HASTYMAILSOURCE)
|
||||
|
||||
$(MANIFESTS)/hastymail.pp: $(PACKAGES)/$(HASTYMAILTARGET)
|
||||
@umask 022; echo $@; \
|
||||
|
|
|
@ -11,7 +11,7 @@ manifest: $(MANIFESTS)/murmur.pp
|
|||
|
||||
$(PACKAGES)/$(TARGET):
|
||||
@umask 022; echo $@; \
|
||||
test -f $@ || curl -L -o $@ $(SOURCE)
|
||||
test -f $@ || curl -f -L -o $@ $(SOURCE)
|
||||
|
||||
$(MANIFESTS)/murmur.pp: $(PACKAGES)/$(TARGET)
|
||||
@umask 022; echo $@; \
|
||||
|
|
|
@ -13,11 +13,11 @@ manifest: $(MANIFESTS)/phantomjs.pp
|
|||
|
||||
$(PACKAGES)/$(TARGET32):
|
||||
@umask 022; echo $@; \
|
||||
test -f $@ || curl -o $@ $(SOURCE32)
|
||||
test -f $@ || curl -f -o $@ $(SOURCE32)
|
||||
|
||||
$(PACKAGES)/$(TARGET64):
|
||||
@umask 022; echo $@; \
|
||||
test -f $@ || curl -o $@ $(SOURCE64)
|
||||
test -f $@ || curl -f -o $@ $(SOURCE64)
|
||||
|
||||
$(MANIFESTS)/phantomjs.pp: $(PACKAGES)/$(TARGET32) $(PACKAGES)/$(TARGET64)
|
||||
@umask 022; echo $@; \
|
||||
|
|
|
@ -15,11 +15,11 @@ manifest: $(MANIFESTS)/solr.pp
|
|||
|
||||
$(PACKAGES)/$(TARGET):
|
||||
@umask 022; echo $@; \
|
||||
test -f $@ || curl -o $@ $(SOURCE)
|
||||
test -f $@ || curl -f -o $@ $(SOURCE)
|
||||
|
||||
$(PACKAGES)/$(PYSOLRTARGET):
|
||||
@umask 022; echo $@; \
|
||||
test -f $@ || curl -o $@ $(PYSOLRSOURCE)
|
||||
test -f $@ || curl -f -o $@ $(PYSOLRSOURCE)
|
||||
|
||||
$(MANIFESTS)/solr.pp: $(PACKAGES)/$(TARGET) $(PACKAGES)/$(PYSOLRTARGET)
|
||||
@umask 022; echo $@; \
|
||||
|
|
|
@ -13,11 +13,11 @@ manifest: $(MANIFESTS)/teamspeak.pp
|
|||
|
||||
$(PACKAGES)/$(TARGET32):
|
||||
@umask 022; echo $@; \
|
||||
test -f $@ || curl -o $@ $(SOURCE32)
|
||||
test -f $@ || curl -f -o $@ $(SOURCE32)
|
||||
|
||||
$(PACKAGES)/$(TARGET64):
|
||||
@umask 022; echo $@; \
|
||||
test -f $@ || curl -o $@ $(SOURCE64)
|
||||
test -f $@ || curl -f -o $@ $(SOURCE64)
|
||||
|
||||
$(MANIFESTS)/teamspeak.pp: $(PACKAGES)/$(TARGET32) $(PACKAGES)/$(TARGET64)
|
||||
@umask 022; echo $@; \
|
||||
|
|
|
@ -14,11 +14,11 @@ manifest: $(MANIFESTS)/wiki.pp
|
|||
|
||||
$(PACKAGES)/$(GWIKITARGET):
|
||||
@umask 022; echo $@; \
|
||||
test -f $@ || curl -o $@ $(GWIKISOURCE)
|
||||
test -f $@ || curl -f -o $@ $(GWIKISOURCE)
|
||||
|
||||
$(PACKAGES)/$(MOINTARGET):
|
||||
@umask 022; echo $@; \
|
||||
test -f $@ || curl -o $@ $(MOINSOURCE)
|
||||
test -f $@ || curl -f -o $@ $(MOINSOURCE)
|
||||
|
||||
$(MANIFESTS)/wiki.pp: $(PACKAGES)/$(GWIKITARGET) $(PACKAGES)/$(MOINTARGET)
|
||||
@umask 022; echo $@; \
|
||||
|
|
Loading…
Add table
Reference in a new issue