Skip to content
Snippets Groups Projects
Unverified Commit 7bd221bc authored by Ann Priestman's avatar Ann Priestman Committed by GitHub
Browse files

Merge pull request #1988 from raman-bt/5383-openssl-nuget

Get the TSK_HOME env variable before using it.
parents 636c80d5 6c07a478
No related branches found
No related tags found
No related merge requests found
...@@ -73,17 +73,18 @@ def pullAndBuildAllDependencies(depBranch): ...@@ -73,17 +73,18 @@ def pullAndBuildAllDependencies(depBranch):
# get all nuget packages needed by the solution # get all nuget packages needed by the solution
if(passed): if(passed):
TSK_HOME = os.getenv("TSK_HOME", False)
if not TSK_HOME: if not TSK_HOME:
print("Please set the TSK_HOME environment variable") print("Please set the TSK_HOME environment variable")
sys.exit(1) sys.exit(1)
else: else:
# nuget restore
os.chdir(os.path.join(os.getenv("TSK_HOME"),"win32")) os.chdir(os.path.join(os.getenv("TSK_HOME"),"win32"))
# nuget restore print ("Restoring nuget packages.")
print ("Restoring nuget packages.") ret = subprocess.call(["nuget", "restore", "tsk-win.sln"] , stdout=sys.stdout)
ret = subprocess.call(["nuget", "restore", "tsk-win.sln"] , stdout=sys.stdout) if ret != 0:
if ret != 0: sys.exit("Failed to restore nuget packages")
sys.exit("Failed to restore nuget packages")
def buildTSKAll(): def buildTSKAll():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment