[Tizen] Prevent internet access during managed parts build.
authorMikhail Kurinnoi <m.kurinnoi@samsung.com>
Wed, 23 Jun 2021 13:31:00 +0000 (06:31 -0700)
committerolekarev <o.lekarev@samsung.com>
Fri, 11 Feb 2022 15:07:27 +0000 (18:07 +0300)
eng/common/tools.sh
packaging/coreclr-diagnostics.spec

index 6a4871ef72b7a9f7a05c495e49790472dd9b093d..a0da5d4cdf6c11cf404aea662d92da109211d338 100644 (file)
@@ -185,6 +185,10 @@ function InstallDotNet {
   local root=$1
   local version=$2
 
+  if [[ -n $TIZEN_LOCAL_BUILD ]]; then
+    ExitWithExitCode 0
+  fi;
+
   GetDotNetInstallScript "$root"
   local install_script=$_GetDotNetInstallScript
 
index c60a151ca0e9a7022afdaf97c862d73bdc6217ca..34f67473c723f715e4a8f72293eb2e407177e31e 100755 (executable)
@@ -140,6 +140,7 @@ export CXXFLAGS+="-fstack-protector-strong"
 %endif
 %endif
 
+export TIZEN_LOCAL_BUILD=1
 export NUGET_PACKAGES=%{_builddir}/%{name}-%{version}/packages
 export LD_LIBRARY_PATH=%{_builddir}/%{name}-%{version}/libicu-57.1