Changeset 20322


Ignore:
Timestamp:
2010-03-20T18:18:47+01:00 (8 years ago)
Author:
florian
Message:

fix svn download with older svn client versions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/download.mk

    r20299 r20322  
    6464endef 
    6565 
     66SVN_VERSION=$(shell svn --version | head -1 | awk '{ print $3 }' | cut -d. -f2) 
     67ifeq ($(SVN_VERSION),5) 
     68else 
     69SVN_OPTS:=--trust-server-cert 
     70endif 
     71 
    6672define DownloadMethod/svn 
    6773        $(call wrap_mirror, \ 
     
    7177                rm -rf $(SUBDIR) && \ 
    7278                [ \! -d $(SUBDIR) ] && \ 
    73                 svn export --non-interactive --trust-server-cert -r$(VERSION) $(URL) $(SUBDIR) && \ 
     79                svn export --non-interactive $(SVN_OPTS) -r$(VERSION) $(URL) $(SUBDIR) && \ 
    7480                echo "Packing checkout..." && \ 
    7581                $(call dl_pack,$(TMP_DIR)/dl/$(FILE),$(SUBDIR)) && \ 
Note: See TracChangeset for help on using the changeset viewer.