Clean up RPM dotnet symlink to fix build failure (dotnet/core-setup#5451)
authorDavis Goodin <dagood@users.noreply.github.com>
Tue, 12 Mar 2019 20:45:54 +0000 (15:45 -0500)
committerGitHub <noreply@github.com>
Tue, 12 Mar 2019 20:45:54 +0000 (15:45 -0500)
Commit migrated from https://github.com/dotnet/core-setup/commit/43f5f662f30718de0ea2bda2f8abd759a6ad9863

src/installer/pkg/packaging/rpm/package.targets

index af0f6b3..c4f19e4 100644 (file)
           SkipUnchangedFiles="False"
           UseHardlinksIfPossible="False" />
 
+    <!--
+      Clean up dotnet symlink. Later build steps are confused and fail because the symlink points to
+      a path that doesn't exist on the build machine.
+    -->
+    <Delete Files="$(rpmLayoutUsrBinDir)dotnet" />
   </Target>
 
   <Target Name="GenerateHostFxrRpm">