X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/aca2129d2d65c66ed60c8ab31c7ea3ebb4709550..6eed60365d39d10b8d9ae2a3e0a6f44df8b2976a:/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)/ && \