tazwok rev 426
Added support for bazaar VCS packages.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Mar 06 20:53:19 2011 +0000 (2011-03-06) |
parents | 73817c4f672b |
children | 6d514a2cd9ef |
files | tazwok |
line diff
1.1 --- a/tazwok Sun Mar 06 19:03:20 2011 +0100 1.2 +++ b/tazwok Sun Mar 06 20:53:19 2011 +0000 1.3 @@ -685,7 +685,7 @@ 1.4 mkdir $tmp_src 1.5 cd $tmp_src 1.6 if [ "$BRANCH" ]; then 1.7 - git clone $file ${src##*/} && cd ${src##*/} && \ 1.8 + git clone $file ${src##*/} && cd ${src##*/} && \ 1.9 git checkout $BRANCH && rm -rf .git* && break 1.10 else 1.11 git clone $file ${src##*/} && rm -rf ${src##*/}/.git* && break 1.12 @@ -696,6 +696,23 @@ 1.13 continue 1.14 fi 1.15 ;; 1.16 + bazaar\|*) 1.17 + file=${file#bazaar|} 1.18 + [ "$COMMAND" = get-src ] && [ ! -f $INSTALLED/bazaar/receipt ] && tazpkg get-install bazaar --forced 1.19 + if [ -f $INSTALLED/bazaar/receipt ]; then 1.20 + mkdir $tmp_src 1.21 + cd $tmp_src 1.22 + if [ "$BRANCH" ]; then 1.23 + bzr co $file -r $BRANCH ${src##*/} && rm -rf ${src##*/}/.bzr* && break 1.24 + else 1.25 + bzr co $file ${src##*/} && rm -rf ${src##*/}/.bzr* && break 1.26 + fi 1.27 + revert_vcs_failure 1.28 + else 1.29 + tazwok_warning "Needs bazaar to download the source tarball from $file, please add it as build-depend." 1.30 + continue 1.31 + fi 1.32 + ;; 1.33 subversion\|*) 1.34 file=${file#subversion|} 1.35 [ "$COMMAND" = get-src ] && [ ! -f $INSTALLED/subversion/receipt ] && tazpkg get-install subversion --forced