2012-09-01 13:26:27 +02:00
|
|
|
# Path to molecules.git dir
|
|
|
|
SABAYON_MOLECULE_HOME="${SABAYON_MOLECULE_HOME:-/sabayon}"
|
|
|
|
. "${SABAYON_MOLECULE_HOME}/scripts/iso_build.include"
|
|
|
|
|
|
|
|
(
|
2012-09-01 13:48:26 +02:00
|
|
|
flock --timeout ${LOCK_TIMEOUT} -x 9
|
2012-09-01 13:26:27 +02:00
|
|
|
if [ "${?}" != "0" ]; then
|
|
|
|
echo "[cleanup] cannot acquire lock, stale process holding it?" >&2
|
2012-09-01 13:48:26 +02:00
|
|
|
kill_stale_process || exit 1
|
2012-09-01 13:26:27 +02:00
|
|
|
fi
|
|
|
|
"${SABAYON_MOLECULE_HOME}/scripts/cleanup_pkgcache.sh"
|
|
|
|
) 9> "${ISO_BUILD_LOCK}"
|
|
|
|
|
|
|
|
exit ${?}
|