OSDN Git Service

Fixed a bug that incompletion of necessary build dependent detection caused incomlete...
[portsreinstall/current.git] / lib / libdatabase_maintain.sh
index 5ee2453..e3e1762 100644 (file)
@@ -18,6 +18,12 @@ database_maintain_clean_all ()
        rm -rf "${DBDIR}"
 }
 
+# ============= Reset the execution result flags =============
+database_maintain_reset_execflag ()
+{
+       rm -rf "${DBDIR}/execflag"
+}
+
 # ============= Load a temporary database from an archive =============
 database_maintain_load ()
 {
@@ -156,9 +162,11 @@ database_maintain_reset ()
        fi
        find "${DBDIR}" -depth 1 -maxdepth 1 \
                -not \( -name saved_options.sh -or -name initial \
+                       -or -name fossil_pkgs -or -name moved_from \
                        -or -name MYVERSION -or -name .lock \
                        -or -name journal -or -name prevset \
-                       -or -name backup_failure -or -name installed_ports \) \
+                       -or -name backup_failure -or -name installed_ports \
+                       -or -name installed_ports:pkg_vs_origin.tbl \) \
                -exec rm -rf {} \; 2> /dev/null || :
        touch "${DBDIR}/MYVERSION"
        case $mode in