OSDN Git Service

cee957c5e145f4866a0c5a17ed6a5eab7d79a370
[portsreinstall/current.git] / lib / main / libtemp.sh
1 #!/bin/sh -e
2 # ==============================================================================
3 # portsreinstall library script
4 # Overlay onto lib/libtemp.sh
5 # - Temporary directory and signal trapping -
6 # Copyright (C) 2018-2021 Mamoru Sakaue, MwGhennndo, All Rights Reserved.
7 # This software is distributed under the 2-Clause BSD License.
8 # ==============================================================================
9
10 # ============= Warn when the temporary database is obsolete =============
11 temp_warn_obsolete_temp_db ()
12 {
13         [ "x${DATABASE_IS_OBSOLETE}" = xyes ] || return 0
14         message_echo "WARNING: The Ports tree was updated after construction of the temporary database for ${APPNAME}."
15         message_echo "You should consider executing "
16         message_echo "        ${APPNAME} reset keepstatus"
17         message_echo "to reset the temporary database unless you have special purposes."
18 }