bro-33614: Override exit code in find_msbuild.bat (GH-7169) · python/cpython@6025451

2 files changed

lines changed

Original file line numberDiff line numberDiff line change

@@ -57,3 +57,4 @@

5757

@if not defined MSBUILD @echo Failed to find MSBuild

5858

@set _Py_MSBuild_Source=

5959

@if not defined MSBUILD @exit /b 1

60+

@exit /b 0

Original file line numberDiff line numberDiff line change

@@ -142,8 +142,8 @@

142142

<_Lines Include="@(_Symbols->'%(Symbol)')" />

143143

</ItemGroup>

144144

<MakeDir Directories="$(IntDir)" />

145-

<Message Text="Updating python3stub.def" Condition="@(_OriginalLines) != @(_Lines)" Importance="high" />

145+

<Message Text="Updating python3stub.def" Condition="@(_Lines) != @(_OriginalLines)" Importance="high" />

146146

<WriteLinesToFile File="$(IntDir)python3stub.def" Lines="@(_Lines)" Overwrite="true"

147-

Condition="@(_DefLines) != @(_Lines)" />

147+

Condition="@(_Lines) != @(_OriginalLines)" />

148148

</Target>

149149

</Project>