# HG changeset patch # User Christopher Rogers # Date 1342170061 0 # Node ID 0b6c1c223f1c8e28fc4c5bc064f5c2424b444fcf # Parent 755379070a00f3994ea4772a6815b9d78af81bf1 cook: Move init_db_files to libcook.sh. Fixed debug_info function. diff -r 755379070a00 -r 0b6c1c223f1c cook --- a/cook Mon Jun 25 06:19:46 2012 +0000 +++ b/cook Fri Jul 13 09:01:01 2012 +0000 @@ -77,20 +77,6 @@ fi } -# Initialize files used in $CACHE -init_db_files() { - gettext "Creating directories structure in:"; echo " $SLITAZ" - mkdir -p $INCOMING $PKGS $SRC $FEEDS $CACHE $LOGS - gettext "Creating DB files in:"; echo " $CACHE" - for f in $activity $command $broken $blocked $commits $cookorder $cooklist $command $wan_db $dep_db $fullco $lib_db $unbuild - do - touch $f - done - if [ -f $PKGS/libraries.txt ]; then - cp -a $PKGS/libraries.txt $lib_db - fi -} - # QA: check a receipt consistency before building. receipt_quality() { gettext -e "QA: checking package receipt...\n" @@ -458,9 +444,9 @@ echo "Cook date: $(date '+%Y-%m-%d %H:%M')" for error in \ ERROR "No package" "cp: can't" "can't open" "can't cd" \ - "error:" "fatal error:" "rm: can't remove" "cp: can't stat" + "error:" "fatal error:" "rm: can't remove" "cp: can't stat" \ "undefined reference to" "Unable to connect to" \ - "link: cannot find the library" + "link: cannot find the library" "CMake Error" do fgrep "$error" $LOGS/$pkg.log done diff -r 755379070a00 -r 0b6c1c223f1c lib/libcook.sh --- a/lib/libcook.sh Mon Jun 25 06:19:46 2012 +0000 +++ b/lib/libcook.sh Fri Jul 13 09:01:01 2012 +0000 @@ -70,3 +70,17 @@ done done && sed -i /^$/d $cooklist } + +# Initialize files used in $CACHE +init_db_files() { + gettext "Creating directories structure in:"; echo " $SLITAZ" + mkdir -p $INCOMING $PKGS $SRC $FEEDS $CACHE $LOGS + gettext "Creating DB files in:"; echo " $CACHE" + for f in $activity $command $broken $blocked $commits $cookorder $cooklist $command $wan_db $dep_db $fullco $lib_db $unbuild + do + touch $f + done + if [ -f $PKGS/libraries.txt ]; then + cp -a $PKGS/libraries.txt $lib_db + fi +}