]> git.corax.cc Git - foundry/commit
include/context: Move files when adding them to a context
authorMatthias Kruk <m@m10k.eu>
Sun, 25 Jul 2021 04:31:16 +0000 (13:31 +0900)
committerMatthias Kruk <m@m10k.eu>
Sun, 25 Jul 2021 04:31:16 +0000 (13:31 +0900)
commit0645118056f09d1dd235ac6afb0292986e4f4a55
treed0cf01ab37fc93cfef6c8d030791415543213ecf
parentde56715082fa839a54b5a8d460c7584e43b5c8ac
include/context: Move files when adding them to a context

When adding files (or logs) to a context, the files are placed in a
context-specific directory using cp. This causes copies of the files
to be left behind in the working directories of the generating
processes, requiring additional cleanup if the copies are not needed
anymore. However, in the majority of cases, the copy is not needed.

This commit modifies the foundry_context_add_file() and
foundry_context_add_log() functions so that mv is used to place the
files in the context's directory, doing away with the need to clean
up the working directories of the generating processes.
dispatchbot.sh
include/context.sh