mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 17:55:55 +02:00
fix svn download with older svn client versions
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20322 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
e3e02843a6
commit
19b7cd1729
@ -63,6 +63,12 @@ define DownloadMethod/cvs
|
|||||||
)
|
)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
SVN_VERSION=$(shell svn --version | head -1 | awk '{ print $3 }' | cut -d. -f2)
|
||||||
|
ifeq ($(SVN_VERSION),5)
|
||||||
|
else
|
||||||
|
SVN_OPTS:=--trust-server-cert
|
||||||
|
endif
|
||||||
|
|
||||||
define DownloadMethod/svn
|
define DownloadMethod/svn
|
||||||
$(call wrap_mirror, \
|
$(call wrap_mirror, \
|
||||||
echo "Checking out files from the svn repository..."; \
|
echo "Checking out files from the svn repository..."; \
|
||||||
@ -70,7 +76,7 @@ define DownloadMethod/svn
|
|||||||
cd $(TMP_DIR)/dl && \
|
cd $(TMP_DIR)/dl && \
|
||||||
rm -rf $(SUBDIR) && \
|
rm -rf $(SUBDIR) && \
|
||||||
[ \! -d $(SUBDIR) ] && \
|
[ \! -d $(SUBDIR) ] && \
|
||||||
svn export --non-interactive --trust-server-cert -r$(VERSION) $(URL) $(SUBDIR) && \
|
svn export --non-interactive $(SVN_OPTS) -r$(VERSION) $(URL) $(SUBDIR) && \
|
||||||
echo "Packing checkout..." && \
|
echo "Packing checkout..." && \
|
||||||
$(call dl_pack,$(TMP_DIR)/dl/$(FILE),$(SUBDIR)) && \
|
$(call dl_pack,$(TMP_DIR)/dl/$(FILE),$(SUBDIR)) && \
|
||||||
mv $(TMP_DIR)/dl/$(FILE) $(DL_DIR)/ && \
|
mv $(TMP_DIR)/dl/$(FILE) $(DL_DIR)/ && \
|
||||||
|
Loading…
Reference in New Issue
Block a user