tazwok rev 274
Fixed get-src to be able to download VCS sources. Changed the checks in download to look for receipt instead of install folders cause some times a abort can leave empty folders in INSTALLED.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Mon Feb 14 02:12:34 2011 +0000 (2011-02-14) |
parents | 5ab102a2359a |
children | 8e0574acbdfa |
files | tazwok |
line diff
1.1 --- a/tazwok Mon Feb 14 01:51:19 2011 +0000 1.2 +++ b/tazwok Mon Feb 14 02:12:34 2011 +0000 1.3 @@ -658,7 +658,8 @@ 1.4 case "$file" in 1.5 git\|*) 1.6 file=${file#git|} 1.7 - if [ -d $INSTALLED/git ]; then 1.8 + [ ! -f $INSTALLED/git/receipt ] && tazpkg get-install git --forced 1.9 + if [ -f $INSTALLED/git/receipt ]; then 1.10 mkdir $tmp_src 1.11 cd $tmp_src 1.12 if [ "$BRANCH" ]; then 1.13 @@ -675,7 +676,8 @@ 1.14 ;; 1.15 subversion\|*) 1.16 file=${file#subversion|} 1.17 - if [ -d $INSTALLED/subversion ]; then 1.18 + [ ! -f $INSTALLED/subversion/receipt ] && tazpkg get-install subversion --forced 1.19 + if [ -f $INSTALLED/subversion/receipt ]; then 1.20 mkdir $tmp_src 1.21 cd $tmp_src 1.22 if [ "$BRANCH" ]; then 1.23 @@ -691,7 +693,8 @@ 1.24 ;; 1.25 mercurial\|*) 1.26 file=${file#mercurial|} 1.27 - if [ -d $INSTALLED/mercurial ]; then 1.28 + [ ! -f $INSTALLED/mercurial/receipt ] && tazpkg get-install mercurial --forced 1.29 + if [ -f $INSTALLED/mercurial/receipt ]; then 1.30 mkdir $tmp_src 1.31 cd $tmp_src 1.32 if [ "$BRANCH" ]; then 1.33 @@ -2864,6 +2867,7 @@ 1.34 source_lib report 1.35 report start 1.36 check_for_tarball 1.37 + [ -x /usr/bin/clean-chroot ] && clean-chroot 1.38 else 1.39 echo "No tarball to download for $PACKAGE" 1.40 fi