Force gzip to overwrite an existing changelog (#665)
If a compressed changelog exists from a previous build, reconfiguring the project fails with ``` [rocm-core configure] CMake Error at utils.cmake:213 (message): [rocm-core configure] Failed to compress: gzip: [rocm-core configure] /home/ben/src/TheRock/build/base/rocm-core/build/DEBIAN/changelog.Debian.gz [rocm-core configure] already exists; not overwritten ``` Add `-f` to force overwriting.
This commit is contained in:
zatwierdzone przez
GitHub
rodzic
c85200fc42
commit
01828d1375
@@ -229,7 +229,7 @@ function( configure_debian_pkg PACKAGE_NAME_T COMPONENT_NAME_T PACKAGE_VERSION_T
|
||||
find_program ( DEB_GZIP_EXEC gzip )
|
||||
if(EXISTS "${CMAKE_BINARY_DIR}/DEBIAN/changelog.Debian" )
|
||||
execute_process(
|
||||
COMMAND ${DEB_GZIP_EXEC} -n -9 "${CMAKE_BINARY_DIR}/DEBIAN/changelog.Debian"
|
||||
COMMAND ${DEB_GZIP_EXEC} -f -n -9 "${CMAKE_BINARY_DIR}/DEBIAN/changelog.Debian"
|
||||
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/DEBIAN"
|
||||
RESULT_VARIABLE result
|
||||
OUTPUT_VARIABLE output
|
||||
|
||||
Reference in New Issue
Block a user