summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2023-10-05 21:10:18 +0200
committerMaciej Barć <xgqt@gentoo.org>2023-10-12 17:52:27 +0200
commitded71238070e9894083d2775677cbecf6b07da4e (patch)
tree651930b9a31aa07c1b7633f04dab8b785a7faa23 /eclass/dotnet-pkg.eclass
parenteclass/nuget.eclass: add special NUGET_API case for Gentoo devs' hosting (diff)
downloadgentoo-ded71238070e9894083d2775677cbecf6b07da4e.tar.gz
gentoo-ded71238070e9894083d2775677cbecf6b07da4e.tar.bz2
gentoo-ded71238070e9894083d2775677cbecf6b07da4e.zip
eclass/nuget.eclass: partition dotnet-pkg_src_unpack
This enables easier usage of "nuget_link-nuget-archives" in some special cases. Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'eclass/dotnet-pkg.eclass')
-rw-r--r--eclass/dotnet-pkg.eclass14
1 files changed, 2 insertions, 12 deletions
diff --git a/eclass/dotnet-pkg.eclass b/eclass/dotnet-pkg.eclass
index 201daf1ecce3..b4f0c053d69a 100644
--- a/eclass/dotnet-pkg.eclass
+++ b/eclass/dotnet-pkg.eclass
@@ -136,18 +136,8 @@ dotnet-pkg_pkg_setup() {
# copied into the "NUGET_PACKAGES" directory.
dotnet-pkg_src_unpack() {
nuget_link-system-nugets
-
- local archive
- for archive in ${A} ; do
- case "${archive}" in
- *.nupkg )
- nuget_link "${DISTDIR}/${archive}"
- ;;
- * )
- unpack "${archive}"
- ;;
- esac
- done
+ nuget_link-nuget-archives
+ nuget_unpack-non-nuget-archives
}
# @FUNCTION: dotnet-pkg_src_prepare