tazwok rev 496
Fixed check_for_pkg_in_wok function in tazwok. I made sure it checked provided receipt existed before returning 1. This should fix the errors like 'can't fine jdk in wok or mirror'.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue Apr 26 04:54:53 2011 +0000 (2011-04-26) |
parents | 8efb459a412e |
children | 70c7cb6c0956 |
files | tazwok |
line diff
1.1 --- a/tazwok Sun Apr 24 22:23:11 2011 +0200 1.2 +++ b/tazwok Tue Apr 26 04:54:53 2011 +0000 1.3 @@ -206,9 +206,10 @@ 1.4 { 1.5 [ -f $WOK/$PACKAGE/receipt ] && return 1.6 if [ "$undigest" ]; then 1.7 - [ -f "$SLITAZ_VERSION/wok/$PACKAGE/receipt" ] && return 1 1.8 + [ -f "$SLITAZ_DIR/$SLITAZ_VERSION/wok/$PACKAGE/receipt" ] && return 1 1.9 grep -q ^$PACKAGE$ $SLITAZ_DIR/$SLITAZ_VERSION/packages/packages.txt && return 1 1.10 fi 1.11 + [ -f $WOK/$(whoprovide $PACKAGE)/receipt ] && return 1 1.12 echo "Can't find $PACKAGE in wok or mirror" >&2 1.13 return 2 1.14 }