commit:     9e0671d075dbe27287f0c26f98d3a79903f2e17c
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 10 13:14:43 2024 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Sat Feb 10 16:24:48 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e0671d0

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

Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 dev-dotnet/fsautocomplete/fsautocomplete-0.69.0.ebuild | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/dev-dotnet/fsautocomplete/fsautocomplete-0.69.0.ebuild 
b/dev-dotnet/fsautocomplete/fsautocomplete-0.69.0.ebuild
index 067b6596c2fa..b02efa598d3b 100644
--- a/dev-dotnet/fsautocomplete/fsautocomplete-0.69.0.ebuild
+++ b/dev-dotnet/fsautocomplete/fsautocomplete-0.69.0.ebuild
@@ -322,22 +322,12 @@ src_unpack() {
 src_prepare() {
        dotnet-pkg_src_prepare
 
+       rm paket.lock || die
        sed -i paket.dependencies -e "s|@NUGET_PACKAGES@|${NUGET_PACKAGES}|g" 
|| 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
 }
 
 src_configure() {
        dotnet-pkg-base_restore_tools
-
-       rm paket.lock || die
        edotnet paket install
 
        dotnet-pkg_src_configure

Reply via email to