tazwok rev 481
tazwok, check_for_tarball(): tiny improvement
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Thu Apr 07 18:55:45 2011 +0200 (2011-04-07) |
parents | 94cf0dd0c490 |
children | fb70a2fffb05 |
files | tazwok |
line diff
1.1 --- a/tazwok Mon Apr 04 03:10:40 2011 +0200 1.2 +++ b/tazwok Thu Apr 07 18:55:45 2011 +0200 1.3 @@ -440,6 +440,7 @@ 1.4 check_for_tarball() 1.5 { 1.6 [ "$WGET_URL" ] || return 0 1.7 + [ "$WANTED" ] || return 0 1.8 look_for_cookopt !unpack && nounpack=yes 1.9 report step "Checking for source tarball: $PACKAGE" 1.10 local repack_src=$repack_src TARBALL=$TARBALL 1.11 @@ -477,13 +478,6 @@ 1.12 return 0 1.13 fi 1.14 1.15 - # Untaring source if necessary. We don't need to extract source if 1.16 - # the package is built with a wanted source package. 1.17 - if [ "$WANTED" ]; then 1.18 - [ -d "$tmp_src" ] && rm -r $tmp_src 1.19 - return 1.20 - fi 1.21 - 1.22 report step "Untaring source tarball" 1.23 1.24 # Log process. 1.25 @@ -1024,7 +1018,7 @@ 1.26 # Set $src for standard package and $_pkg variables. 1.27 set_src_path 1.28 set_pkg_path 1.29 - 1.30 + 1.31 # Execute genpkg_rules, check package and copy generic files to build 1.32 # the package. 1.33 report step "Building $PACKAGE with the receipt"