autopkg / grahamgilbert-recipes

Apache License 2.0
7 stars 19 forks source link

Crypt 2.munki recipe failing #6

Closed tcinbis closed 7 years ago

tcinbis commented 7 years ago

Hello everybody, the Crypt 2 munki recipe is failing since the newest release with the following error message and log (triple v):

FlatPkgUnpacker
{'Input': {'destination_path': u'/Users/***/Library/AutoPkg/Cache/com.github.grahamgilbert.Crypt2.munki/unpack',
           'flat_pkg_path': u'/Users/***/Library/AutoPkg/Cache/com.github.grahamgilbert.Crypt2.munki/downloads/Crypt2.pkg'}}
FlatPkgUnpacker: Unpacked /Users/***/Library/AutoPkg/Cache/com.github.grahamgilbert.Crypt2.munki/downloads/Crypt2.pkg to /Users/***/Library/AutoPkg/Cache/com.github.grahamgilbert.Crypt2.munki/unpack
{'Output': {}}
PkgPayloadUnpacker
{'Input': {'destination_path': u'/Users/***/Library/AutoPkg/Cache/com.github.grahamgilbert.Crypt2.munki/payload',
           'pkg_payload_path': u'/Users/***/Library/AutoPkg/Cache/com.github.grahamgilbert.Crypt2.munki/unpack/Payload'}}
extraction of /Users/***/Library/AutoPkg/Cache/com.github.grahamgilbert.Crypt2.munki/unpack/Payload with ditto failed: ditto: /Users/***/Library/AutoPkg/Cache/com.github.grahamgilbert.Crypt2.munki/unpack/Payload: No such file or directory

Failed.
Receipt written to /Users/***/Library/AutoPkg/Cache/com.github.grahamgilbert.Crypt2.munki/receipts/ch.unibas.its.git.mcs.munki-receipt-20170919-143142.plist

The following recipes failed:
    com.github.grahamgilbert.Crypt2.munki
        Error in com.github.grahamgilbert.Crypt2.munki: Processor: PkgPayloadUnpacker: Error: extraction of /Users/***/Library/AutoPkg/Cache/com.github.grahamgilbert.Crypt2.munki/unpack/Payload with ditto failed: ditto: /Users/***/Library/AutoPkg/Cache/com.github.grahamgilbert.Crypt2.munki/unpack/Payload: No such file or directory

Nothing downloaded, packaged or imported. 

The download works fine, but if you take a look into the unpack folder you will only find a pkg instead of a folder like Payload or so.

Thanks in advanced!

grahamgilbert commented 7 years ago

Can you try the above PR and see if it fixes your issue?

tcinbis commented 7 years ago

@grahamgilbert thanks for the fix! I updated the path for the Payload unpacker, now the recipes works again for me. Can you confirm that (see PR)?

grahamgilbert commented 7 years ago

Thanks for the PR!