mirror of https://github.com/OpenRCT2/OpenRCT2.git
Scope zipversion cache files to their downloads
This commit is contained in:
parent
855659adc1
commit
645f620c2c
|
@ -9,8 +9,8 @@ function(download_openrct2_zip)
|
||||||
if (NOT EXISTS ${DOWNLOAD_OPENRCT2_DOWNLOAD_DIR})
|
if (NOT EXISTS ${DOWNLOAD_OPENRCT2_DOWNLOAD_DIR})
|
||||||
set(DOWNLOAD_ZIP 1)
|
set(DOWNLOAD_ZIP 1)
|
||||||
else ()
|
else ()
|
||||||
if (EXISTS "${DOWNLOAD_OPENRCT2_DOWNLOAD_DIR}/zipversion")
|
if (EXISTS "${DOWNLOAD_OPENRCT2_DOWNLOAD_DIR}/${ZIP_FILE_NAME}.zipversion")
|
||||||
file(READ "${DOWNLOAD_OPENRCT2_DOWNLOAD_DIR}/zipversion" DOWNLOAD_OPENRCT2_CACHED_VERSION)
|
file(READ "${DOWNLOAD_OPENRCT2_DOWNLOAD_DIR}/${ZIP_FILE_NAME}.zipversion" DOWNLOAD_OPENRCT2_CACHED_VERSION)
|
||||||
if (NOT ${DOWNLOAD_OPENRCT2_CACHED_VERSION} STREQUAL ${DOWNLOAD_OPENRCT2_ZIP_VERSION})
|
if (NOT ${DOWNLOAD_OPENRCT2_CACHED_VERSION} STREQUAL ${DOWNLOAD_OPENRCT2_ZIP_VERSION})
|
||||||
message("Cache ${DOWNLOAD_OPENRCT2_DOWNLOAD_DIR} not up to date")
|
message("Cache ${DOWNLOAD_OPENRCT2_DOWNLOAD_DIR} not up to date")
|
||||||
set(DOWNLOAD_ZIP 1)
|
set(DOWNLOAD_ZIP 1)
|
||||||
|
@ -42,7 +42,7 @@ function(download_openrct2_zip)
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
file(WRITE
|
file(WRITE
|
||||||
"${DOWNLOAD_OPENRCT2_DOWNLOAD_DIR}/zipversion"
|
"${DOWNLOAD_OPENRCT2_DOWNLOAD_DIR}/${ZIP_FILE_NAME}.zipversion"
|
||||||
"${DOWNLOAD_OPENRCT2_ZIP_VERSION}"
|
"${DOWNLOAD_OPENRCT2_ZIP_VERSION}"
|
||||||
)
|
)
|
||||||
file(REMOVE "${DOWNLOAD_OPENRCT2_DOWNLOAD_DIR}/${ZIP_FILE_NAME}")
|
file(REMOVE "${DOWNLOAD_OPENRCT2_DOWNLOAD_DIR}/${ZIP_FILE_NAME}")
|
||||||
|
|
Loading…
Reference in New Issue