aboutsummaryrefslogtreecommitdiff
path: root/NvCloth/scripts/packman
diff options
context:
space:
mode:
authorMarijn Tamis <[email protected]>2018-05-03 18:22:48 +0200
committerMarijn Tamis <[email protected]>2018-05-03 18:22:48 +0200
commitca32c59a58d37c1822e185a2d5f3d0d3e8943593 (patch)
treeb06b9eec03f34344ef8fc31aa147b2714d3962ee /NvCloth/scripts/packman
parentForced rename of platform folders in cmake dir. Git didn't pick this up before. (diff)
downloadnvcloth-ca32c59a58d37c1822e185a2d5f3d0d3e8943593.tar.xz
nvcloth-ca32c59a58d37c1822e185a2d5f3d0d3e8943593.zip
NvCloth 1.1.4 Release. (24070740)
Diffstat (limited to 'NvCloth/scripts/packman')
-rw-r--r--NvCloth/scripts/packman/config.packman.xml3
-rw-r--r--NvCloth/scripts/packman/packman.cmd7
-rw-r--r--NvCloth/scripts/packman/packman.sh8
-rw-r--r--NvCloth/scripts/packman/win-bootstrap/configure.bat6
-rw-r--r--NvCloth/scripts/packman/win-bootstrap/fetch_file_from_s3.cmd6
5 files changed, 15 insertions, 15 deletions
diff --git a/NvCloth/scripts/packman/config.packman.xml b/NvCloth/scripts/packman/config.packman.xml
index 6099556..b2fad68 100644
--- a/NvCloth/scripts/packman/config.packman.xml
+++ b/NvCloth/scripts/packman/config.packman.xml
@@ -1,9 +1,10 @@
<config remotes="gtl">
<remote name="s3" type="s3" packageLocation="packman">
<credentials id="AKIAJHPSPBMWMTZS6TJA" key="vK3d0lHiQjEW9krFfvKA4OLpuHGxi2L4/Q4r4IuT"
- errorUrl="https://gtl-gitlab.nvidia.com/halldor/packman/wikis/how-to-configure-s3-full-access"/>
+ errorUrl="https://gtl-gitlab.nvidia.com/halldor/packman/wikis/credentials/failure-using-s3-packman-read-access"/>
</remote>
<remote name="gtl" type="gtl">
<credentials id="svcgtlautomate" key="QHV0ME1AdDNHVEwkY3IxcHQk"/>
</remote>
+ <remote name="cloudfront" type="https" packageLocation="d2bmww5yym6ce8.cloudfront.net/${name}@${version}" />
</config>
diff --git a/NvCloth/scripts/packman/packman.cmd b/NvCloth/scripts/packman/packman.cmd
index 03e2cf8..a0cf8c7 100644
--- a/NvCloth/scripts/packman/packman.cmd
+++ b/NvCloth/scripts/packman/packman.cmd
@@ -8,11 +8,10 @@
@if not defined PM_MODULE goto :MODULE_ENV_ERROR
:: Generate temporary path for variable file
-:TEMP_VAR_PATH_LOOP
-@set "PM_VAR_PATH=%tmp%\tmp.%RANDOM%.pmvars"
-@if exist "%PM_VAR_PATH%" goto :TEMP_VAR_PATH_LOOP
+@for /f "delims=" %%a in ('powershell -ExecutionPolicy ByPass -NoLogo -NoProfile ^
+-File "%~dp0win-bootstrap\generate_temp_file_name.ps1"') do @set PM_VAR_PATH=%%a
-@"%PM_PYTHON%" "%PM_MODULE%" %* --var-path="%PM_VAR_PATH%"
+@"%PM_PYTHON%" -u "%PM_MODULE%" %* --var-path="%PM_VAR_PATH%"
@if errorlevel 1 goto :eof
:: Marshall environment variables into the current environment if they have been generated and remove temporary file
diff --git a/NvCloth/scripts/packman/packman.sh b/NvCloth/scripts/packman/packman.sh
index 3fbd753..a892def 100644
--- a/NvCloth/scripts/packman/packman.sh
+++ b/NvCloth/scripts/packman/packman.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-PM_PACKMAN_VERSION=5.0-rc2
+PM_PACKMAN_VERSION=5.1
# Specify where packman command exists
export PM_INSTALL_PATH=$(dirname ${BASH_SOURCE})
@@ -66,9 +66,9 @@ fi
# Ensure 7za package exists:
PM_7za_VERSION=16.02
-export PM_7za_PATH="$PM_PACKAGES_ROOT/7za/$PM_7za_VERSION"
+export PM_7za_PATH="$PM_PACKAGES_ROOT/chk/7za/$PM_7za_VERSION"
if [ ! -f "$PM_7za_PATH" ]; then
- $PM_PYTHON "$PM_MODULE" install 7za $PM_7za_VERSION -r packman:s3
+ $PM_PYTHON "$PM_MODULE" install 7za $PM_7za_VERSION -r packman:cloudfront
if [ "$?" -ne 0 ]; then
echo "Failure while installing required 7za package"
exit 1
@@ -78,7 +78,7 @@ fi
# Generate temporary file name for environment variables:
PM_VAR_PATH=`mktemp -u -t tmp.XXXXX.$$.pmvars`
-$PM_PYTHON "$PM_MODULE" $* --var-path="$PM_VAR_PATH"
+$PM_PYTHON -u "$PM_MODULE" $* --var-path="$PM_VAR_PATH"
exit_code=$?
# Export the variables if the file was used and remove the file:
if [ -f "$PM_VAR_PATH" ]; then
diff --git a/NvCloth/scripts/packman/win-bootstrap/configure.bat b/NvCloth/scripts/packman/win-bootstrap/configure.bat
index 0528b09..e2781c4 100644
--- a/NvCloth/scripts/packman/win-bootstrap/configure.bat
+++ b/NvCloth/scripts/packman/win-bootstrap/configure.bat
@@ -1,4 +1,4 @@
-@set PM_PACKMAN_VERSION=5.0-rc2
+@set PM_PACKMAN_VERSION=5.1
:: Specify where packman command is rooted
@set PM_INSTALL_PATH=%~dp0..
@@ -88,10 +88,10 @@
:ENSURE_7ZA
@set PM_7Za_VERSION=16.02
-@set PM_7Za_PATH=%PM_PACKAGES_ROOT%\7za\%PM_7ZA_VERSION%
+@set PM_7Za_PATH=%PM_PACKAGES_ROOT%\chk\7za\%PM_7ZA_VERSION%
@if exist "%PM_7Za_PATH%" goto END
-@"%PM_PYTHON%" "%PM_MODULE%" install 7za %PM_7za_VERSION% -r packman:s3
+@"%PM_PYTHON%" "%PM_MODULE%" install 7za %PM_7za_VERSION% -r packman:cloudfront
@if errorlevel 1 goto ERROR
@goto END
diff --git a/NvCloth/scripts/packman/win-bootstrap/fetch_file_from_s3.cmd b/NvCloth/scripts/packman/win-bootstrap/fetch_file_from_s3.cmd
index 63766c1..0d0a440 100644
--- a/NvCloth/scripts/packman/win-bootstrap/fetch_file_from_s3.cmd
+++ b/NvCloth/scripts/packman/win-bootstrap/fetch_file_from_s3.cmd
@@ -3,7 +3,7 @@
@set PACKAGE_NAME=%1
@set TARGET_PATH=%2
-@echo Fetching %PACKAGE_NAME% from s3 ...
+@echo Fetching %PACKAGE_NAME% from S3 ...
@powershell -ExecutionPolicy ByPass -NoLogo -NoProfile -File "%~dp0fetch_file_from_s3.ps1" -sourceName %PACKAGE_NAME% ^
-output %TARGET_PATH%
@@ -16,7 +16,7 @@
@exit /b 0
:ERROR_DOWNLOAD_FAILED
-@echo Failed to download file from %1
-@echo Most likely because endpoint cannot be reached (VPN connection down?)
+@echo Failed to download file from S3
+@echo Most likely because endpoint cannot be reached or file %PACKAGE_NAME% doesn't exist
@endlocal
@exit /b 1 \ No newline at end of file