Handle duplicate archive and package specs; handle multifile archives better (#1018)

Archives with multiple files should have all files in the inputs.
Also clean up some inconsistent variable naming -- archive name,
archive file path, and archive input files were all stored in
incorrectly-named variables.
This commit is contained in:
Soam Vasani
2018-12-11 16:35:31 +08:00
committed by Ta-Ching Chen
parent f0c0936b87
commit 2699aa6069
6 changed files with 192 additions and 92 deletions
+1 -1
View File
@@ -293,7 +293,7 @@ func upgradeRestoreState(c *cli.Context) error {
tmpfile.Close()
// upload
archive := createArchive(client, tmpfile.Name(), "")
archive := uploadArchive(client, tmpfile.Name())
os.Remove(tmpfile.Name())
// create pkg