only defer on finish download

This commit is contained in:
Makis Maropoulos 2016-06-07 12:30:29 +03:00
parent 0e05c68876
commit 6af451b800
2 changed files with 2 additions and 2 deletions

View File

@ -118,7 +118,7 @@ func createPackage(packageName string, targetDir string) error {
app.Printf("Error while preparing main file: %#v", err)
}
InfoPrint("\n%s package was installed successfully", packageName)
InfoPrint("%s package was installed successfully", packageName)
// build & run the server

View File

@ -92,7 +92,7 @@ func DownloadZip(zipURL string, newDir string) (string, error) {
if err != nil {
return "", ErrFileCopy.Format(err.Error())
}
finish <- true
_ = size
//print("OK ", size, " bytes downloaded") //we keep that here so developer will always see in the terminal if a plugin downloads something or no ?
return fileName, nil