File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 33 <packageSources >
44 <clear />
55 <!-- Begin: Package sources managed by Dependency Flow automation. Do not edit the sources below.-->
6+ <!-- Begin: Package sources from dotnet-dotnet -->
7+ <add key =" darc-pub-dotnet-dotnet-862de94" value =" https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-dotnet-862de94f/nuget/v3/index.json" />
8+ <!-- End: Package sources from dotnet-dotnet -->
69 <!-- Begin: Package sources from dotnet-runtime -->
10+ <add key =" darc-int-dotnet-runtime-e1f1988" value =" https://pkgs.dev.azure.com/dnceng/internal/_packaging/darc-int-dotnet-runtime-e1f19886/nuget/v3/index.json" />
711 <!-- End: Package sources from dotnet-runtime -->
812 <!-- End: Package sources managed by Dependency Flow automation. Do not edit the sources above.-->
913 <add key =" dotnet-eng" value =" https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json" />
2226 <clear />
2327 <!-- Begin: Package sources managed by Dependency Flow automation. Do not edit the sources below.-->
2428 <!-- Begin: Package sources from dotnet-runtime -->
29+ <add key =" darc-int-dotnet-runtime-e1f1988" value =" true" />
2530 <!-- End: Package sources from dotnet-runtime -->
2631 <!-- End: Package sources managed by Dependency Flow automation. Do not edit the sources above.-->
2732 </disabledPackageSources >
Original file line number Diff line number Diff line change @@ -66,10 +66,8 @@ EnableInternalPackageSource() {
6666 grep -i " <add key=\" $PackageSourceName \" value=\" true\" " " $ConfigFile " > /dev/null
6767 if [ " $? " == " 0" ]; then
6868 echo " Enabling internal source '$PackageSourceName '."
69- # Remove the disabled entry
70- local OldDisableValue=" <add key=\" $PackageSourceName \" value=\" true\" />"
71- local NewDisableValue=" <!-- Reenabled for build : $PackageSourceName -->"
72- sed -i.bak " s|$OldDisableValue |$NewDisableValue |" " $ConfigFile "
69+ # Remove the disabled entry (including any surrounding comments or whitespace on the same line)
70+ sed -i.bak " /<add key=\" $PackageSourceName \" value=\" true\" \/>/d" " $ConfigFile "
7371
7472 # Add the source name to PackageSources for credential handling
7573 PackageSources+=(" $PackageSourceName " )
You can’t perform that action at this time.
0 commit comments