fix: make sure host attribute is set rather than blank in logs on windows by using the env var 'COMPUTERNAME' instead of 'HOSTNAME'. Thus make it less difficult to order recipes in the log by time. fix
authortimothy.murphy@nokia.com
Sun, 28 Feb 2010 21:18:07 +0200
branchfix
changeset 279 733464eaac50
parent 251 64208ed747d4
child 280 8ba60ea0ce9a
fix: make sure host attribute is set rather than blank in logs on windows by using the env var 'COMPUTERNAME' instead of 'HOSTNAME'. Thus make it less difficult to order recipes in the log by time.
sbsv2/raptor/lib/flm/taggedrules.mk
--- a/sbsv2/raptor/lib/flm/taggedrules.mk	Mon Feb 22 22:24:20 2010 +0000
+++ b/sbsv2/raptor/lib/flm/taggedrules.mk	Sun Feb 28 21:18:07 2010 +0200
@@ -99,10 +99,17 @@
 
 
 else
+
+  ifneq ($(filter win,$(HOST_PLATFORM)),)
+    TALON_HOSTNAME_VAR:=$$COMPUTERNAME
+  else
+    TALON_HOSTNAME_VAR:=$$HOSTNAME
+  endif
+
 TALON_RECIPEATTRIBUTES:=\
  name='$$RECIPE'\
  target='$$TARGET'\
- host='$$HOSTNAME'\
+ host='$(TALON_HOSTNAME_VAR)'\
  layer='$$COMPONENT_LAYER'\
  component='$$COMPONENT_NAME'\
  bldinf='$$COMPONENT_META' mmp='$$PROJECT_META'\