Skip to content

Fix not updated symlinks in log dirs. Fix runtime exception when ".directory" file was presented in log dir.

Andrew Shark requested to merge ashark/kdesrc-build:fix_log_dirs_symlinks into master
  • In "latest-by-phase" log directory the symlinks to real log directories were not updated if they existed.

  • When using compile-commands-linking, if you change the build-dir, the symlinks to compile_commands.json were not updated if they existed.

This happened because there was not a check of exit status of symlink perl function in these two cases. It returns the 0 status code in case of failure rather than throwing an exception. Made a separate Util function "remake_symlink" to be able to reuse it.

This also fixes the case when there is some file presented in "latest" log directory.

Merge request reports