dev-dotnet/nake: use eclass for NuGet.config manipulation

Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
Maciej Barć
2024-02-10 13:47:03 +01:00
parent e25d1dc71c
commit 6a64d00775

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2023 Gentoo Authors
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -277,15 +277,5 @@ src_prepare() {
)
rm "${bad_tests[@]}" || die
cat << EOF > NuGet.Config || die
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="nuget" value="${NUGET_PACKAGES}" />
</packageSources>
</configuration>
EOF
dotnet-pkg_src_prepare
}