Fix spec command overrides existing archive's url of a package (#764)

This commit is contained in:
Ta-Ching Chen
2018-07-11 13:03:45 +08:00
committed by GitHub
parent 34e8d0ee3d
commit 9c885ef6f5
2 changed files with 29 additions and 9 deletions
+2 -2
View File
@@ -828,8 +828,8 @@ func applyArchives(fclient *client.Client, specDir string, fr *FissionResources)
// does the archive exist already?
if url, ok := availableArchives[ar.Checksum.Sum]; ok {
fmt.Printf("archive %v exists, not uploading\n", name)
a := archiveFiles[name]
a.URL = url
ar.URL = url
archiveFiles[name] = ar
} else {
// doesn't exist, upload
fmt.Printf("uploading archive %v\n", name)