cookutils rev 512 slitaz-tank
cook: Move init_db_files to libcook.sh. Fixed debug_info function.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri Jul 13 09:01:01 2012 +0000 (2012-07-13) |
parents | 755379070a00 |
children | 8da5f7cbd5c0 |
files | cook lib/libcook.sh |
line diff
1.1 --- a/cook Mon Jun 25 06:19:46 2012 +0000 1.2 +++ b/cook Fri Jul 13 09:01:01 2012 +0000 1.3 @@ -77,20 +77,6 @@ 1.4 fi 1.5 } 1.6 1.7 -# Initialize files used in $CACHE 1.8 -init_db_files() { 1.9 - gettext "Creating directories structure in:"; echo " $SLITAZ" 1.10 - mkdir -p $INCOMING $PKGS $SRC $FEEDS $CACHE $LOGS 1.11 - gettext "Creating DB files in:"; echo " $CACHE" 1.12 - for f in $activity $command $broken $blocked $commits $cookorder $cooklist $command $wan_db $dep_db $fullco $lib_db $unbuild 1.13 - do 1.14 - touch $f 1.15 - done 1.16 - if [ -f $PKGS/libraries.txt ]; then 1.17 - cp -a $PKGS/libraries.txt $lib_db 1.18 - fi 1.19 -} 1.20 - 1.21 # QA: check a receipt consistency before building. 1.22 receipt_quality() { 1.23 gettext -e "QA: checking package receipt...\n" 1.24 @@ -458,9 +444,9 @@ 1.25 echo "Cook date: $(date '+%Y-%m-%d %H:%M')" 1.26 for error in \ 1.27 ERROR "No package" "cp: can't" "can't open" "can't cd" \ 1.28 - "error:" "fatal error:" "rm: can't remove" "cp: can't stat" 1.29 + "error:" "fatal error:" "rm: can't remove" "cp: can't stat" \ 1.30 "undefined reference to" "Unable to connect to" \ 1.31 - "link: cannot find the library" 1.32 + "link: cannot find the library" "CMake Error" 1.33 do 1.34 fgrep "$error" $LOGS/$pkg.log 1.35 done
2.1 --- a/lib/libcook.sh Mon Jun 25 06:19:46 2012 +0000 2.2 +++ b/lib/libcook.sh Fri Jul 13 09:01:01 2012 +0000 2.3 @@ -70,3 +70,17 @@ 2.4 done 2.5 done && sed -i /^$/d $cooklist 2.6 } 2.7 + 2.8 +# Initialize files used in $CACHE 2.9 +init_db_files() { 2.10 + gettext "Creating directories structure in:"; echo " $SLITAZ" 2.11 + mkdir -p $INCOMING $PKGS $SRC $FEEDS $CACHE $LOGS 2.12 + gettext "Creating DB files in:"; echo " $CACHE" 2.13 + for f in $activity $command $broken $blocked $commits $cookorder $cooklist $command $wan_db $dep_db $fullco $lib_db $unbuild 2.14 + do 2.15 + touch $f 2.16 + done 2.17 + if [ -f $PKGS/libraries.txt ]; then 2.18 + cp -a $PKGS/libraries.txt $lib_db 2.19 + fi 2.20 +}