# This software is distributed under the 2-Clause BSD License.
# ==============================================================================
-# ============= Destroy the builder chroot environment and clean up the temporary database =============
+# ============= Destroy the builder chroot environment by preserving the option setting =============
database_maintain_destroy ()
{
message_echo "Starting to clean up the builder chroot environment..."
+ program_deregister_stage_complete CLEANUP_GUEST
fs_destroy
+ message_echo "Starting to reset the temporary database by preserving the option setting..."
+ find "${DBDIR}" -depth 1 -maxdepth 1 \
+ -not \( -name saved_options.sh \
+ -or -name MYVERSION -or -name .lock \) \
+ -exec rm -rf {} \; 2> /dev/null || :
+ touch "${DBDIR}/MYVERSION"
}
# ============= Destroy the builder chroot environment and clean up the temporary database =============
database_maintain_clean ()
{
- database_maintain_destroy
+ message_echo "Starting to clean up the builder chroot environment..."
+ fs_destroy
message_echo "Starting to clean up the temporary database..."
command_exec_without_pkgtools__notify_reset_options
rm -rf "${DBDIR}"
MYVERSION=4.1.0
COMPATIBLE_VERSIONS='^(4\.[1]\.[0-9])$'
# Template for development versions
- MYVERSION=4.0.0+toward_4.1.0_20180821151910
+ MYVERSION=4.0.0+toward_4.1.0_20180821153931
COMPATIBLE_VERSIONS='^(4\.[0-1]\.[0-9]]|4\.[0]\.[0]+(|\+toward_4\.[0-1]\.[0-9]+_[0-9]+))$'
}