tazwok rev 227
Fixed the nounpack option to unpack to recompress source. I just wanted the tmp_src folder to be removed after .tar.lzma file was made. Otherwise the wok would get full of source code again.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri Feb 04 19:18:26 2011 +0000 (2011-02-04) |
parents | ba91b130e283 |
children | 6d2d15fde9ce |
files | tazwok |
line diff
1.1 --- a/tazwok Fri Feb 04 17:55:34 2011 +0000 1.2 +++ b/tazwok Fri Feb 04 19:18:26 2011 +0000 1.3 @@ -460,7 +460,7 @@ 1.4 1.5 # Untaring source if necessary. We don't need to extract source if 1.6 # the package is built with a wanted source package. 1.7 - if [ "$WANTED" ] || [ "$nounpack" ]; then 1.8 + if [ "$WANTED" ]; then 1.9 return 1.10 fi 1.11 1.12 @@ -518,6 +518,10 @@ 1.13 1.14 fi 1.15 fi 1.16 + if [ "$nounpack" ]; then 1.17 + [ -d "$tmp_src" ] && rm -r $tmp_src 1.18 + return 1.19 + fi 1.20 if [ -d "$tmp_src" ]; then 1.21 if ! check_for_var_modification src _pkg; then 1.22 src="${src%/*}/$(ls $tmp_src)"