Browse Source

do not always remove all .out files - during hours of heavy package build

error fixing this usually bites me multiple times -> so finally fix this
damn misbehaviour


git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@2482 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Rene Rebe 21 years ago
parent
commit
7e7d17d00e
1 changed files with 10 additions and 2 deletions
  1. +10
    -2
      scripts/Build-Target

+ 10
- 2
scripts/Build-Target

@ -76,14 +76,22 @@ pkgloop() {
fi
if [ "$ROCKCFG_RETRY_BROKEN" -eq 1 -a \
-z "$build_only_this_job" -a \
"`ls ${build_root}/var/adm/logs/*.err 2> /dev/null`" ] ; then
"`ls ${build_root}/var/adm/logs/*.err 2> /dev/null`" ] ; then
echo_header "Removing old error logs ..."
for x in ${build_root}/var/adm/logs/*.err ; do
echo_status "Removing ${x#$build_root/} ..."
rm -f $x
done
fi
rm -f "${build_root}"/var/adm/logs/*.out
if [ -z "$build_only_this_job" -a \
"`ls ${build_root}/var/adm/logs/*.out 2> /dev/null`" ] ; then
echo_header "Removing old output logs ..."
for x in ${build_root}/var/adm/logs/*.out ; do
echo_status "Removing ${x#$build_root/} ..."
rm -f $x
done
fi
if [ "$ROCKCFG_PARALLEL" = 1 -a -z "$build_only_this_job" ]
then
qdir="$base/build/$ROCKCFG_ID/queue"

Loading…
Cancel
Save