- only write the geoip database if the fetch was successful

This commit is contained in:
Jordan Sissel 2013-09-02 22:36:51 -07:00
parent b8a0bc209f
commit fe503adef9

View file

@ -117,7 +117,8 @@ vendor/geoip: | vendor
$(QUIET)mkdir $@
$(GEOIP): | vendor/geoip
$(QUIET)wget -q -O - $(GEOIP_URL) | gzip -dc - > $@
$(QUIET)wget -q -O - $(GEOIP_URL) | gzip -dc - > $@.tmp
$(QUIET)mv $@.tmp $@
# Always run vendor/bundle
.PHONY: fix-bundler