tazwok rev 112
Check WEB_SITE and EXTRAVERSION
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jan 27 20:01:24 2009 +0100 (2009-01-27) |
parents | 39afa4058a9d |
children | 09a5c6aa4f92 |
files | tazwok |
line diff
1.1 --- a/tazwok Sat Jan 24 16:44:16 2009 +0000 1.2 +++ b/tazwok Tue Jan 27 20:01:24 2009 +0100 1.3 @@ -705,6 +705,7 @@ 1.4 [ -f $pkg/receipt ] || continue 1.5 PACKAGE="" 1.6 VERSION="" 1.7 + EXTRAVERSION="" 1.8 CATEGORY="" 1.9 SHORT_DESC="" 1.10 MAINTAINER="" 1.11 @@ -719,6 +720,7 @@ 1.12 [ -n "$VERSION" ] || echo "Package $PACKAGE has no VERSION" 1.13 [ -n "$PACKED_SIZE" ] && echo "Package $PACKAGE has hardcoded PACKED_SIZE" 1.14 [ -n "$UNPACKED_SIZE" ] && echo "Package $PACKAGE has hardcoded UNPACKED_SIZE" 1.15 + [ -n "$EXTRAVERSION" ] && echo "Package $PACKAGE has hardcoded EXTRAVERSION" 1.16 if [ -n "$WANTED" ]; then 1.17 if [ ! -f $WANTED/receipt ]; then 1.18 echo "Package $PACKAGE want unknown $WANTED package" 1.19 @@ -745,7 +747,11 @@ 1.20 fi 1.21 [ -n "$SHORT_DESC" ] || echo "Package $PACKAGE has no SHORT_DESC" 1.22 [ -n "$MAINTAINER" ] || echo "Package $PACKAGE has no MAINTAINER" 1.23 - [ -n "$WEB_SITE" ] || echo "Package $PACKAGE has no WEB_SITE" 1.24 + case "$WEB_SITE" in 1.25 + ftp*|http*);; 1.26 + '') echo "Package $PACKAGE has no WEB_SITE";; 1.27 + *) echo "Package $PACKAGE has an invalid WEB_SITE";; 1.28 + esac 1.29 case "$MAINTAINER" in 1.30 *\<*|*\>*) echo "Package $PACKAGE has an invalid MAINTAINER: $MAINTAINER";; 1.31 esac