autopkg / cgerke-recipes

AutoPKG Recipes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DeployStudio.pkg.recipe fail if already downloaded

seansgm opened this issue · comments

If you run the above recipe when already downloaded/packaged the recipe fails and exit value is 1:

The following recipes failed: DeployStudio.pkg Error in com.github.autopkg.cgerke-recipes.pkg.DeployStudio: Processor: Copier: Error: Can't copy /private/tmp/dmg.0WTB73/DeployStudioServer_v1.6.13.mpkg to /Volumes/DATA/autopkg/Cache/com.github.autopkg.cgerke-recipes.pkg.DeployStudio/DeployStudio.mpkg: [Errno 17] File exists: '/Volumes/DATA/autopkg/Cache/com.github.autopkg.cgerke-recipes.pkg.DeployStudio/DeployStudio.mpkg'

I think you need to use PkgCopier instead of Copier for pkg/mpkg and use the key source_pkg instead of source_path.