aboutsummaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorArsenShnurkov <Arsen.Shnurkov@gmail.com>2016-08-19 18:02:05 +0300
committerArsenShnurkov <Arsen.Shnurkov@gmail.com>2016-08-19 18:02:05 +0300
commit1e7571f7795f972011adb7924675afccdd6c8964 (patch)
tree19cfbf28c109754f70aaa4025f1ad0a403cb78f5 /eclass
parentadding to gac (diff)
downloaddotnet-1e7571f7795f972011adb7924675afccdd6c8964.tar.gz
dotnet-1e7571f7795f972011adb7924675afccdd6c8964.tar.bz2
dotnet-1e7571f7795f972011adb7924675afccdd6c8964.zip
repoman fixes
Diffstat (limited to 'eclass')
-rw-r--r--eclass/nuget.eclass35
1 files changed, 18 insertions, 17 deletions
diff --git a/eclass/nuget.eclass b/eclass/nuget.eclass
index c145dce..5137513 100644
--- a/eclass/nuget.eclass
+++ b/eclass/nuget.eclass
@@ -50,6 +50,24 @@ enuget_download_rogue_binary() {
nuget install "$1" -Version "$2" -SolutionDirectory "${T}" -ConfigFile "${CONFIG_PATH}/${CONFIG_NAME}" -OutputDirectory "${S}/packages" -Verbosity detailed || die
}
+if [[ $PV == *_alpha* ]] ; then
+ NPV=${PVR/_alpha/-alpha}
+else
+ if [[ $PV == *_beta* ]] ; then
+ NPV=${PVR/_beta/-beta}
+ else
+ if [[ $PV == *_pre* ]] ; then
+ NPV=${PVR/_pre/-pre}
+ else
+ if [[ $PV == *_p* ]] ; then
+ NPV=${PVR/_p/-p}
+ else
+ NPV=${PVR}
+ fi
+ fi
+ fi
+fi
+
# @FUNCTION: nuget_src_unpack
# @DESCRIPTION: Runs nuget
# Here is usage example where nuget is alternative way: https://github.com/gentoo/dotnet/blob/master/dev-dotnet/fake
@@ -60,23 +78,6 @@ nuget_src_unpack() {
NPN=${PN/_/.}
- if [[ $PV == *_alpha* ]] ; then
- NPV=${PVR/_alpha/.}
- else
- if [[ $PV == *_beta* ]] ; then
- NPV=${PVR/_beta/.}
- else
- if [[ $PV == *_pre* ]] ; then
- NPV=${PVR/_pre/.}
- else
- if [[ $PV == *_p* ]] ; then
- NPV=${PVR/_p/.}
- else
- NPV=${PVR}
- fi
- fi
- fi
- fi
nuget install "${NPN}" -Version "${NPV}" -OutputDirectory "${P}"
}