mirror of
https://github.com/clearlinux/WALinuxAgent.git
synced 2026-09-06 05:41:57 +00:00
Update makepkg.py to integrate with EDP
This commit is contained in:
+2
-9
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user