@@ -127,12 +127,6 @@ static Exec_stat MCDeployPushMinOSVersion(MCDeployParameters& p_params, MCDeploy
127127 t_major = t_minor = t_inc = 0 ;
128128 sscanf (p_vers_string, " %d.%d.%d" , &t_major, &t_minor, &t_inc);
129129
130-
131- // SN-2015-02-12L: [[ Bug 14422 ]] We do not push anything if the minimum
132- // version less than 7.0
133- if (t_major < 7 )
134- return ES_NORMAL;
135-
136130 if (!MCMemoryResizeArray (p_params . min_os_version_count + 1 , p_params . min_os_versions, p_params . min_os_version_count))
137131 return ES_ERROR;
138132
@@ -596,6 +590,7 @@ Exec_stat MCIdeDeploy::exec(MCExecPoint& ep)
596590 // it encodes the version against the 'Unknown' architecture which is interpreted
597591 // by the deploy command to mean all architectures. Otherwise, the keys in the
598592 // array are assumed to be architecture names and each is pushed on the array.
593+ // If the 'min_os_version' is empty, then no change is brought to the binaries.
599594 // If multiple entries are present, then the 'unknown' mapping is used for any
600595 // architecture not explicitly specified. The current architecture strings that are
601596 // known are:
@@ -632,7 +627,7 @@ Exec_stat MCIdeDeploy::exec(MCExecPoint& ep)
632627 t_stat = MCDeployPushMinOSVersion (t_params, t_arch, ep3 . getcstring ());
633628 }
634629 }
635- else
630+ else if (!ep2. isempty ())
636631 t_stat = MCDeployPushMinOSVersion (t_params, kMCDeployArchitecture_Unknown , ep2 . getcstring ());
637632 }
638633 }
0 commit comments