tazwok rev 159
Add check-src command. Check remote upstream tarball.
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Thu Jan 28 09:46:36 2010 +0100 (2010-01-28) |
parents | a4bc10547de8 |
children | 3a48fb61c93d |
files | tazwok |
line diff
1.1 --- a/tazwok Wed Jan 27 15:41:25 2010 +0100 1.2 +++ b/tazwok Thu Jan 28 09:46:36 2010 +0100 1.3 @@ -102,6 +102,7 @@ 1.4 check Check every receipt for common errors. 1.5 check-log Check the process log file of a package. 1.6 check-depends Check every receipt for DEPENDS - doesn't scan ELF files. 1.7 + check-src Check upstream tarball for package in the wok. 1.8 search Search for a package in the wok by pattern or name. 1.9 compile Configure and build a package using the receipt rules. 1.10 genpkg Generate a suitable package for Tazpkg with the rules. 1.11 @@ -1447,6 +1448,26 @@ 1.12 echo "================================================================================" 1.13 echo "Packages maintained by $2: $packages" 1.14 echo "" ;; 1.15 + check-src) 1.16 + # Verify if upstream package is still available 1.17 + # 1.18 + check_for_package_on_cmdline 1.19 + check_for_receipt 1.20 + . $WOK/$PACKAGE/receipt 1.21 + check_src() 1.22 + { 1.23 + for url in $@; do 1.24 + wget -s $url 2>/dev/null && break 1.25 + done 1.26 + } 1.27 + if [ ! -z "$WGET_URL" ];then 1.28 + echo -n "$PACKAGE : " 1.29 + check_src $WGET_URL 1.30 + status 1.31 + else 1.32 + echo "No tarball to check for $PACKAGE" 1.33 + fi 1.34 + ;; 1.35 usage|*) 1.36 # Print usage also for all unknown commands. 1.37 #