lol

dotnet-sdk: only set updateScript for sdk projects. As per suggestion in https://github.com/NixOS/nixpkgs/pull/191962#pullrequestreview-1136650360

mdarocha 7687d9cc d0c935df

+2 -8
+2 -8
pkgs/development/compilers/dotnet/build-dotnet.nix
··· 130 130 }; 131 131 132 132 updateScript = 133 - if type != "sdk" then 134 - lib.warn "${pname}-${version}: only the SDK package can be updated - this script will do nothing!" 135 - writeShellScript "dummy-update" '' 136 - echo "Doing nothing..." 137 - echo "Run the updateScript from the SDK package" 138 - '' 139 - else 133 + if type == "sdk" then 140 134 let 141 135 majorVersion = 142 136 with lib; ··· 145 139 writeShellScript "update-dotnet-${majorVersion}" '' 146 140 pushd pkgs/development/compilers/dotnet 147 141 exec ${./update.sh} "${majorVersion}" 148 - ''; 142 + '' else null; 149 143 150 144 # Convert a "stdenv.hostPlatform.system" to a dotnet RID 151 145 systemToDotnetRid = system: runtimeIdentifierMap.${system} or (throw "unsupported platform ${system}");