Alon Bar-Lev has uploaded a new change for review. Change subject: packaging: setup: package display version within log ......................................................................
packaging: setup: package display version within log Change-Id: I168fe5e6ae52cd595f44dd352464d787b2010eb3 Signed-off-by: Alon Bar-Lev <[email protected]> --- M packaging/setup/ovirt_engine_setup/config.py.in M packaging/setup/ovirt_engine_setup/constants.py M packaging/setup/plugins/ovirt-engine-common/core/misc.py 3 files changed, 10 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/22/17222/1 diff --git a/packaging/setup/ovirt_engine_setup/config.py.in b/packaging/setup/ovirt_engine_setup/config.py.in index 1d64d1f..210f215 100644 --- a/packaging/setup/ovirt_engine_setup/config.py.in +++ b/packaging/setup/ovirt_engine_setup/config.py.in @@ -28,6 +28,7 @@ ENGINE_DATADIR = '@ENGINE_USR@' ENGINE_LOCALSTATEDIR = '@ENGINE_VAR@' ENGINE_TMP = '@ENGINE_TMP@' +PACKAGE_NAME = '@PACKAGE_NAME@' PACKAGE_VERSION = '@PACKAGE_VERSION@' DISPLAY_VERSION = '@DISPLAY_VERSION@' RPM_VERSION = '@RPM_VERSION@' diff --git a/packaging/setup/ovirt_engine_setup/constants.py b/packaging/setup/ovirt_engine_setup/constants.py index 4fd3acc..06559be 100644 --- a/packaging/setup/ovirt_engine_setup/constants.py +++ b/packaging/setup/ovirt_engine_setup/constants.py @@ -536,6 +536,8 @@ @util.export @util.codegen class Const(object): + PACKAGE_NAME = config.PACKAGE_NAME + PACKAGE_VERSION = config.PACKAGE_VERSION DISPLAY_VERSION = config.DISPLAY_VERSION RPM_VERSION = config.RPM_VERSION RPM_RELEASE = config.RPM_RELEASE diff --git a/packaging/setup/plugins/ovirt-engine-common/core/misc.py b/packaging/setup/plugins/ovirt-engine-common/core/misc.py index 90c2660..703b9ec 100644 --- a/packaging/setup/plugins/ovirt-engine-common/core/misc.py +++ b/packaging/setup/plugins/ovirt-engine-common/core/misc.py @@ -75,6 +75,13 @@ '3.0,3.1,3.2,3.3' ) + self.logger.debug( + 'Package: %s-%s (%s)', + osetupcons.Const.PACKAGE_NAME, + osetupcons.Const.PACKAGE_VERSION, + osetupcons.Const.DISPLAY_VERSION, + ) + if self.environment[osetupcons.CoreEnv.DEVELOPER_MODE] is None: self.environment[osetupcons.CoreEnv.DEVELOPER_MODE] = False if os.geteuid() != 0: -- To view, visit http://gerrit.ovirt.org/17222 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I168fe5e6ae52cd595f44dd352464d787b2010eb3 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Alon Bar-Lev <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
