tazwok rev 224
Fixed check_for _tarball to remove tmp_src if get-src is used.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu Feb 03 19:36:57 2011 +0000 (2011-02-03) |
parents | 56edff64b98e |
children | e05c35b39a91 |
files | tazwok |
line diff
1.1 --- a/tazwok Wed Feb 02 03:47:22 2011 +0100 1.2 +++ b/tazwok Thu Feb 03 19:36:57 2011 +0000 1.3 @@ -484,7 +484,7 @@ 1.4 *) tar xzf $SOURCES_REPOSITORY/$TARBALL -C $tmp_src;; 1.5 esac || return 1 1.6 1.7 - # Check if uncompressed tarbal is in a root dir or not. 1.8 + # Check if uncompressed tarball is in a root dir or not. 1.9 if [ "$(ls -A $tmp_src | wc -l)" -gt 1 ]; then 1.10 if check_for_var_modification src _pkg; then 1.11 mv $tmp_src $tmp_src-1 1.12 @@ -511,6 +511,11 @@ 1.13 1.14 fi 1.15 fi 1.16 + if [ "$1" = "get-src" ]; then 1.17 + if [ -d "$tmp_src" ]; then 1.18 + rm -r $tmp_src 1.19 + fi 1.20 + fi 1.21 if [ -d "$tmp_src" ]; then 1.22 if ! check_for_var_modification src _pkg; then 1.23 src="${src%/*}/$(ls $tmp_src)" 1.24 @@ -2607,7 +2612,7 @@ 1.25 if [ "$WGET_URL" ];then 1.26 source_lib report 1.27 report start 1.28 - check_for_tarball 1.29 + check_for_tarball get-src 1.30 else 1.31 echo "No tarball to download for $PACKAGE" 1.32 fi