Skip to content

Commit 85fc731

Browse files
committed
fix: GitHub链接不正确的问题
1 parent ac0b45a commit 85fc731

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: main.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,14 @@ def DownloadAndCheck(url, fileName, host, suffixName):
103103
temp['checksum'] = "SHA-256:" + ComputeSHA256(tempPath)
104104
temp['size'] = ComputeSize(tempPath)
105105

106-
tempCn = temp
106+
tempCn = temp.copy()
107107
tempCn['url'] = "https://arduino.luatos.com/" + fileName + suffixName
108108
return temp, tempCn
109109

110110

111111
def GCC():
112112
data = {'name': "xpack-arm-none-eabi-gcc", 'version': GCCVersion}
113-
dataCn = data
113+
dataCn = data.copy()
114114
system = []
115115
systemCn = []
116116

@@ -147,7 +147,7 @@ def f(host, suffixName):
147147

148148
def AirISP():
149149
data = {'name': "AirISP", 'version': AirISPVersion}
150-
dataCn = data
150+
dataCn = data.copy()
151151
system = []
152152
systemCn = []
153153

@@ -185,7 +185,7 @@ def f(host, suffixName):
185185

186186
def CMSIS():
187187
data = {'name': "CMSIS", 'version': CMSISVersion}
188-
dataCn = data
188+
dataCn = data.copy()
189189
system = []
190190
systemCn = []
191191

@@ -240,7 +240,7 @@ def PlatformsAirMCU(version):
240240
data['toolsDependencies'] = [{'packager': "AirM2M", 'name': "xpack-arm-none-eabi-gcc", 'version': GCCVersion},
241241
{'packager': "AirM2M", 'name': "CMSIS", 'version': CMSISVersion},
242242
{'packager': "AirM2M", 'name': "AirISP", 'version': AirISPVersion}]
243-
dataCn = data
243+
dataCn = data.copy()
244244
dataCn['url'] = "https://arduino.luatos.com/" + fileName
245245
return data, dataCn
246246

@@ -278,7 +278,7 @@ def PackagesAirM2M():
278278
toolsCn.append(tempCn)
279279

280280
data['tools'] = tools
281-
dataCn = data
281+
dataCn = data.copy()
282282
dataCn['tools'] = toolsCn
283283
return data, dataCn
284284

0 commit comments

Comments
 (0)