Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Fix: Check for /etc/debian_version (0.8.x) #805

Merged
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
11 changes: 9 additions & 2 deletions engine/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1402,9 +1402,16 @@ ELSEIF (CMAKE_SYSTEM_NAME STREQUAL Linux)
SET(CPACK_DEBIAN_PACKAGE_VERSION "${VEGASTRIKE_PKG_VERSION_STR}")
# Debian Version: /etc/debian_version - <name>/<junk>
IF (NOT LSB_EXISTS)
# this still needs to be true so LSB variables are not used below
# even if we don't detect the /etc/debian_version file
SET(USE_DEBIAN_VERSION TRUE)
FILE(READ "/etc/debian_version" DEBIAN_VERSION_DATA)
STRING(REGEX MATCH "^(.+)\/.*$" DEBIAN_VERSION_DATA DEBIAN_RELEASE_VERSION)
IF (EXISTS "/etc/debian_version")
FILE(READ "/etc/debian_version" DEBIAN_VERSION_DATA)
STRING(REGEX MATCH "^(.+)\/.*$" DEBIAN_VERSION_DATA DEBIAN_RELEASE_VERSION)
ELSE (EXISTS "/etc/debian_version")
MESSAGE("Detected dpkg-release but Debian Distro is unknown")
SET(DEBIAN_RELEASE_VERSION "Unknown")
ENDIF (EXISTS "/etc/debian_version")
ELSE (NOT LSB_EXISTS)
SET(USE_DEBIAN_VERSION FALSE)
SET(DEBIAN_RELEASE_VERSION "Debian Derivative Release Version ${LSB_LINUX_DISTRIBUTION_CODENAME}")
Expand Down
Loading