Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cfe_internal/enterprise/CFE_knowledge.cf
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ bundle agent cfe_internal_setup_knowledge
"$(cfe_internal_hub_vars.docroot)"
comment => "Copy the basic knowledge base configuration from the installation to doc root",
handle => "cfe_internal_setup_knowledge_files_doc_root_1",
copy_from => no_backup_cp("$(sys.workdir)/share/GUI"),
copy_from => no_backup_cp_compare("$(sys.workdir)/share/GUI", "binary"),
depth_search => recurse("inf");

any::
Expand Down
13 changes: 13 additions & 0 deletions lib/files.cf
Original file line number Diff line number Diff line change
Expand Up @@ -1616,6 +1616,19 @@ body copy_from no_backup_cp(from)

##

body copy_from no_backup_cp_compare(from, comparison)
# @brief Copy a local file (`from`) based on comparison (`comparison`) and don't make any backup of the previous version
#
# @param from The path to the source file.
# @param comparison The comparison to use. (mtime|ctime|atime|exists|binary|hash|digest)
{
source => "$(from)";
copy_backup => "false";
compare => "$(comparison)";
}

##

body copy_from no_backup_dcp(from)
# @brief Copy a local file if contents have changed, and don't make any backup
# of the previous version
Expand Down