X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/aca2129d2d65c66ed60c8ab31c7ea3ebb4709550..1495465bb401dc696b5a85562de8aa8a6c1705db:/include/download.mk diff --git a/include/download.mk b/include/download.mk index 4e201464b..c924ca051 100644 --- a/include/download.mk +++ b/include/download.mk @@ -70,7 +70,9 @@ define DownloadMethod/svn cd $(TMP_DIR)/dl && \ rm -rf $(SUBDIR) && \ [ \! -d $(SUBDIR) ] && \ - svn export --non-interactive --trust-server-cert -r$(VERSION) $(URL) $(SUBDIR) && \ + ( svn help export | grep -q trust-server-cert && \ + svn export --non-interactive --trust-server-cert -r$(VERSION) $(URL) $(SUBDIR) || \ + svn export --non-interactive -r$(VERSION) $(URL) $(SUBDIR) ) && \ echo "Packing checkout..." && \ $(call dl_pack,$(TMP_DIR)/dl/$(FILE),$(SUBDIR)) && \ mv $(TMP_DIR)/dl/$(FILE) $(DL_DIR)/ && \