Update makepkg.py to integrate with EDP

This commit is contained in:
Yoon Hong
2017-01-20 17:06:50 -08:00
parent 4452c6a8e6
commit a67bc54d44
+2 -9
View File
@@ -42,7 +42,7 @@ PUBLISH_MANIFEST = '''<?xml version="1.0" encoding="utf-8" ?>
<IsJsonExtension>true</IsJsonExtension>
<CompanyName>Microsoft</CompanyName>
<SupportedOS>Linux</SupportedOS>
<Regions>{2}</Regions>
<!--%REGIONS%-->
</ExtensionImage>
'''
@@ -60,12 +60,6 @@ family = 'Test'
if len(sys.argv) > 1:
family = sys.argv[1]
region = 'South Central US'
if len(sys.argv) > 2:
cloud = sys.argv[2]
if cloud == 'BlackForest':
region = 'Germany Central'
def do(*args):
try:
subprocess.check_output(args, stderr=subprocess.STDOUT)
@@ -100,8 +94,7 @@ with open(manifest_path, mode='w') as manifest:
print("Writing {0}".format(publish_manifest_path))
with open(publish_manifest_path, mode='w') as publish_manifest:
publish_manifest.write(PUBLISH_MANIFEST.format(AGENT_VERSION,
family,
region))
family))
cwd = os.getcwd()