2015-06-05 22:03:26 +03:00
|
|
|
set(ALL_FILES_GLOB "*.rpm")
|
|
|
|
|
|
|
|
function(getPackageContent FILE RESULT_VAR)
|
|
|
|
execute_process(COMMAND ${RPM_EXECUTABLE} -pql ${FILE}
|
|
|
|
OUTPUT_VARIABLE package_content_
|
|
|
|
ERROR_QUIET
|
|
|
|
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
|
|
|
|
|
|
|
set(${RESULT_VAR} "${package_content_}" PARENT_SCOPE)
|
|
|
|
endfunction()
|
2015-12-07 22:13:09 +03:00
|
|
|
|
|
|
|
function(getPackageInfo FILE RESULT_VAR)
|
|
|
|
execute_process(COMMAND ${RPM_EXECUTABLE} -pqi ${FILE}
|
|
|
|
OUTPUT_VARIABLE info_content
|
|
|
|
ERROR_QUIET
|
|
|
|
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
|
|
|
|
|
|
|
set(${RESULT_VAR} "${info_content}" PARENT_SCOPE)
|
|
|
|
endfunction()
|