autopkg / jaharmi-recipes

Recipes for the Mac OS X system administration tool, Autopkg
13 stars 18 forks source link

Signal.pkg.recipe fails on PathDeleter Processor #61

Closed SeanHansell closed 2 years ago

SeanHansell commented 2 years ago

Consistently receiving this error. It works fine when the PathDeleter processor is removed. I believe AppPkgCreator does this automatically now.

{'Input': {'path_list': ['/Users/sean/Library/AutoPkg/Cache/com.github.jaharmi.pkg.Signal/payload/']}}
Traceback (most recent call last):
  File "/Library/AutoPkg/autopkglib/__init__.py", line 840, in process
    self.env = processor.process()
  File "/Library/AutoPkg/autopkglib/__init__.py", line 626, in process
    self.main()
  File "/Library/AutoPkg/autopkglib/PathDeleter.py", line 55, in main
    f"Could not remove {path} - it does not exist!"
autopkglib.ProcessorError: Could not remove /Users/sean/Library/AutoPkg/Cache/com.github.jaharmi.pkg.Signal/payload/ - it does not exist!
  File "/Library/AutoPkg/autopkglib/__init__.py", line 840, in process
    self.env = processor.process()
Could not remove /Users/sean/Library/AutoPkg/Cache/com.github.jaharmi.pkg.Signal/payload/ - it does not exist!
Failed.
Receipt written to /Users/sean/Library/AutoPkg/Cache/com.github.jaharmi.pkg.Signal/receipts/com.github.jaharmi.pkg-receipt-20220427-042351.plist

The following recipes failed:
    com.github.jaharmi.pkg.Signal
        Error in com.github.jaharmi.pkg.Signal: Processor: PathDeleter: Error: Could not remove /Users/sean/Library/AutoPkg/Cache/com.github.jaharmi.pkg.Signal/payload/ - it does not exist!

Crystallized's Signal PKG Recipe doesn't work either, for a different reason. Hoping one of you can fix this, so I don't end up rolling a third. I'll open a PR with the change but let me know if there's anything I can do.