autopkg / rtrouton-recipes

Recipes for AutoPkg
MIT License
131 stars 93 forks source link

RStudio.pkg - invalid package name #131

Closed skoobasteeve closed 2 years ago

skoobasteeve commented 3 years ago

It seems that RStudio added the "+" symbol to their versioning, which the PkgCreator processor doesn't like. Any ideas on how to work around this at the recipe level? See error output attached.


{'Output': {}}
AppDmgVersioner
{'Input': {'dmg_path': '/Users/raymondlyon/Library/AutoPkg/Cache/local.jss.RStudio-riskified/downloads/RStudio.dmg'}}
AppDmgVersioner: Mounted disk image /Users/raymondlyon/Library/AutoPkg/Cache/local.jss.RStudio-riskified/downloads/RStudio.dmg
AppDmgVersioner: BundleID: org.rstudio.RStudio
AppDmgVersioner: Version: 2021.09.0+351
{'Output': {'app_name': 'RStudio.app',
            'bundleid': 'org.rstudio.RStudio',
            'version': '2021.09.0+351'}}
PkgRootCreator
{'Input': {'pkgdirs': {'Applications': '0775'},
           'pkgroot': '/Users/raymondlyon/Library/AutoPkg/Cache/local.jss.RStudio-riskified/RStudio'}}
PkgRootCreator: Created /Users/raymondlyon/Library/AutoPkg/Cache/local.jss.RStudio-riskified/RStudio
PkgRootCreator: Creating Applications
PkgRootCreator: Created /Users/raymondlyon/Library/AutoPkg/Cache/local.jss.RStudio-riskified/RStudio/Applications
{'Output': {}}
Copier
{'Input': {'destination_path': '/Users/raymondlyon/Library/AutoPkg/Cache/local.jss.RStudio-riskified/RStudio/Applications/RStudio.app',
           'source_path': '/Users/raymondlyon/Library/AutoPkg/Cache/local.jss.RStudio-riskified/downloads/RStudio.dmg/RStudio.app'}}
Copier: Parsed dmg results: dmg_path: /Users/raymondlyon/Library/AutoPkg/Cache/local.jss.RStudio-riskified/downloads/RStudio.dmg, dmg: .dmg/, dmg_source_path: RStudio.app
Copier: Mounted disk image /Users/raymondlyon/Library/AutoPkg/Cache/local.jss.RStudio-riskified/downloads/RStudio.dmg
Copier: Copied /private/tmp/dmg.jQzQGa/RStudio.app to /Users/raymondlyon/Library/AutoPkg/Cache/local.jss.RStudio-riskified/RStudio/Applications/RStudio.app
{'Output': {}}
PkgCreator
{'Input': {'pkg_request': {'chown': [{'group': 'admin',
                                      'path': 'Applications',
                                      'user': 'root'}],
                           'id': 'org.rstudio.RStudio.pkg',
                           'options': 'purge_ds_store',
                           'pkgdir': '/Users/raymondlyon/Library/AutoPkg/Cache/local.jss.RStudio-riskified',
                           'pkgname': 'RStudio-2021.09.0+351',
                           'scripts': 'Scripts'}}}
PkgCreator: Connecting
PkgCreator: Sending packaging request
PkgCreator: Disconnecting
PkgCreator: Failed to close socket: [Errno 9] Bad file descriptor
Invalid package name
Failed.
Receipt written to /Users/raymondlyon/Library/AutoPkg/Cache/local.jss.RStudio-riskified/receipts/RStudio-riskified.jss-receipt-20211004-062135.plist

The following recipes failed:
    RStudio-riskified.jss.recipe
        Error in local.jss.RStudio-riskified: Processor: PkgCreator: Error: Invalid package name

The following new items were downloaded:
    Download Path
    -------------
    /Users/raymondlyon/Library/AutoPkg/Cache/local.jss.RStudio-riskified/downloads/RStudio.dmg
mjcarey commented 3 years ago

I'm not sure about a recipe level fix, but this relates to autopkg issue #641 (https://github.com/autopkg/autopkg/issues/641)

mjcarey commented 3 years ago

If you can't wait for AutoPkg's core pkgbuild to be updated with more realistic version number sanity checking, the issue can be worked around by using homebysix's VersionSplitter processor to discard everything from the '+' onwards.

foigus commented 2 years ago

Quite awesomely, the RStudio developers engaged in a discussion about this.

We are done for now (until we get an apt / yum repository) - the version number is 2021.09.0+351.pro6 and the package will be written as 2021.09.0-351.pro6. We will maintain this convention going forwards.

snipped content

That said, our product is versioned as 2021.09.0. The build numbers should have little consequence to users, as we will no longer be releasing multiple versions with different build numbers.

So in that case using VersionSplitter to break off the build number and throw it away seems pretty reasonable. Assuming the application version follows suit (which it appears is where AppDmgVersioner is obtaining a version number), VersionSplitter would just need to do the following to the version determined by AppDmgVersioner:

Thoughts? Concerns?

grahampugh commented 2 years ago

Sounds good. It would be better if they actually set their app version correctly to 2021.09.0, but we can always ask for miracles.

rtrouton commented 2 years ago

Now that I know that the versioning before the + is the expected one by the vendor, I've pushed a new version of the .pkg recipe which uses VersionSplitter to drop the + and everything after.

I've also updated the recipe to use the AppPkgCreator processor and dropped the preinstall script which removed existing copies of RStudio.app from /Applications.

Please let me know if the updated recipe works on your ends; I saw the following output on my end:

username@computername RStudio % autopkg run com.github.rtrouton.pkg.RStudio -vvv     
Processing com.github.rtrouton.pkg.RStudio...
WARNING: com.github.rtrouton.pkg.RStudio is missing trust info and FAIL_RECIPES_WITHOUT_TRUST_INFO is not set. Proceeding...
{'AUTOPKG_VERSION': '2.3.1',
 'NAME': 'RStudio',
 'PARENT_RECIPES': ['/Users/username/Desktop/RStudio/RStudio.download.recipe'],
 'RECIPE_CACHE_DIR': '/Users/username/Library/AutoPkg/Cache/com.github.rtrouton.pkg.RStudio',
 'RECIPE_DIR': '/Users/username/Desktop/RStudio',
 'RECIPE_OVERRIDE_DIRS': ['~/Library/AutoPkg/RecipeOverrides'],
 'RECIPE_PATH': '/Users/username/Desktop/RStudio/RStudio.pkg.recipe',
 'RECIPE_REPOS': {'/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.MLBZ521-recipes': {'URL': 'https://github.com/autopkg/MLBZ521-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.Yohan460-recipes': {'URL': 'https://github.com/autopkg/Yohan460-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.andrewvalentine-recipes': {'URL': 'https://github.com/autopkg/andrewvalentine-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.apettinen-recipes': {'URL': 'https://github.com/autopkg/apettinen-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.bkerns-recipes': {'URL': 'https://github.com/autopkg/bkerns-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.bnpl-recipes': {'URL': 'https://github.com/autopkg/bnpl-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.cgerke-recipes': {'URL': 'https://github.com/autopkg/cgerke-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.dataJAR-recipes': {'URL': 'https://github.com/autopkg/dataJAR-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.foigus-recipes': {'URL': 'https://github.com/autopkg/foigus-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.golbiga-recipes': {'URL': 'https://github.com/autopkg/golbiga-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.grahamgilbert-recipes': {'URL': 'https://github.com/autopkg/grahamgilbert-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.hansen-m-recipes': {'URL': 'https://github.com/autopkg/hansen-m-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.hjuutilainen-recipes': {'URL': 'https://github.com/autopkg/hjuutilainen-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.homebysix-recipes': {'URL': 'https://github.com/autopkg/homebysix-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.jleggat-recipes': {'URL': 'https://github.com/autopkg/jleggat-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.joshua-d-miller-recipes': {'URL': 'https://github.com/autopkg/joshua-d-miller-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.justinrummel-recipes': {'URL': 'https://github.com/autopkg/justinrummel-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.killahquam-recipes': {'URL': 'https://github.com/autopkg/killahquam-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.moofit-recipes': {'URL': 'https://github.com/autopkg/moofit-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.mosen-recipes': {'URL': 'https://github.com/autopkg/mosen-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.n8felton-recipes': {'URL': 'https://github.com/autopkg/n8felton-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.novaksam-recipes': {'URL': 'https://github.com/autopkg/novaksam-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.patgmac-recipes': {'URL': 'https://github.com/autopkg/patgmac-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.paul-cossey-recipes': {'URL': 'https://github.com/autopkg/paul-cossey-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.peshay-recipes': {'URL': 'https://github.com/autopkg/peshay-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes': {'URL': 'https://github.com/autopkg/recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.rtrouton-recipes': {'URL': 'https://github.com/autopkg/rtrouton-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.rustymyers-recipes': {'URL': 'https://github.com/autopkg/rustymyers-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.scriptingosx-recipes': {'URL': 'https://github.com/autopkg/scriptingosx-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.smithjw-recipes': {'URL': 'https://github.com/autopkg/smithjw-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.tbridge-recipes': {'URL': 'https://github.com/autopkg/tbridge-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.timsutton-recipes': {'URL': 'https://github.com/autopkg/timsutton-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.triti-recipes': {'URL': 'https://github.com/autopkg/triti-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.rtrouton.autopkg_recipes': {'URL': 'https://github.com/rtrouton/autopkg_recipes'}},
 'RECIPE_SEARCH_DIRS': ['.',
                        '~/Library/AutoPkg/Recipes',
                        '/Library/AutoPkg/Recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.apettinen-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.bkerns-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.bnpl-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.cgerke-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.foigus-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.golbiga-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.grahamgilbert-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.hansen-m-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.hjuutilainen-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.homebysix-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.jleggat-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.joshua-d-miller-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.justinrummel-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.killahquam-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.mosen-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.n8felton-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.novaksam-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.rtrouton-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.rustymyers-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.scriptingosx-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.smithjw-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.tbridge-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.timsutton-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.rtrouton.autopkg_recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.peshay-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.patgmac-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.dataJAR-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.triti-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.MLBZ521-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.paul-cossey-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.Yohan460-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.andrewvalentine-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.moofit-recipes',
                        '/Users/username/Desktop/RStudio'],
 'verbose': 3}
URLTextSearcher
{'Input': {'re_pattern': '(?P<url>download.*?RStudio-.*\\.dmg)',
           'url': 'https://www.rstudio.com/products/rstudio/download/'}}
URLTextSearcher: No value supplied for result_output_var_name, setting default value of: match
URLTextSearcher: Found matching text (url): download1.rstudio.org/desktop/macos/RStudio-2021.09.0-351.dmg
URLTextSearcher: Found matching text (match): download1.rstudio.org/desktop/macos/RStudio-2021.09.0-351.dmg
{'Output': {'match': 'download1.rstudio.org/desktop/macos/RStudio-2021.09.0-351.dmg',
            'url': 'download1.rstudio.org/desktop/macos/RStudio-2021.09.0-351.dmg'}}
URLDownloader
{'Input': {'filename': 'RStudio.dmg',
           'url': 'https://download1.rstudio.org/desktop/macos/RStudio-2021.09.0-351.dmg'}}
URLDownloader: No value supplied for prefetch_filename, setting default value of: False
URLDownloader: No value supplied for CHECK_FILESIZE_ONLY, setting default value of: False
URLDownloader: Storing new Last-Modified header: Wed, 29 Sep 2021 21:29:38 GMT
URLDownloader: Storing new ETag header: "268673dffae51e2ee848ff46a928a00e-24"
URLDownloader: Downloaded /Users/username/Library/AutoPkg/Cache/com.github.rtrouton.pkg.RStudio/downloads/RStudio.dmg
{'Output': {'download_changed': True,
            'etag': '"268673dffae51e2ee848ff46a928a00e-24"',
            'last_modified': 'Wed, 29 Sep 2021 21:29:38 GMT',
            'pathname': '/Users/username/Library/AutoPkg/Cache/com.github.rtrouton.pkg.RStudio/downloads/RStudio.dmg',
            'url_downloader_summary_result': {'data': {'download_path': '/Users/username/Library/AutoPkg/Cache/com.github.rtrouton.pkg.RStudio/downloads/RStudio.dmg'},
                                              'summary_text': 'The following '
                                                              'new items were '
                                                              'downloaded:'}}}
EndOfCheckPhase
{'Input': {}}
{'Output': {}}
CodeSignatureVerifier
{'Input': {'input_path': '/Users/username/Library/AutoPkg/Cache/com.github.rtrouton.pkg.RStudio/downloads/RStudio.dmg/RStudio.app',
           'requirement': 'identifier "org.rstudio.RStudio" and anchor apple '
                          'generic and certificate '
                          '1[field.1.2.840.113635.100.6.2.6] /* exists */ and '
                          'certificate leaf[field.1.2.840.113635.100.6.1.13] '
                          '/* exists */ and certificate leaf[subject.OU] = '
                          'FYF2F5GFX4'}}
CodeSignatureVerifier: Mounted disk image /Users/username/Library/AutoPkg/Cache/com.github.rtrouton.pkg.RStudio/downloads/RStudio.dmg
CodeSignatureVerifier: Verifying code signature...
CodeSignatureVerifier: Deep verification enabled...
CodeSignatureVerifier: Strict verification not defined. Using codesign defaults...
CodeSignatureVerifier: /private/tmp/dmg.yvvAZV/RStudio.app: valid on disk
CodeSignatureVerifier: /private/tmp/dmg.yvvAZV/RStudio.app: satisfies its Designated Requirement
CodeSignatureVerifier: /private/tmp/dmg.yvvAZV/RStudio.app: explicit requirement satisfied
CodeSignatureVerifier: Signature is valid
{'Output': {}}
AppDmgVersioner
{'Input': {'dmg_path': '/Users/username/Library/AutoPkg/Cache/com.github.rtrouton.pkg.RStudio/downloads/RStudio.dmg'}}
AppDmgVersioner: Mounted disk image /Users/username/Library/AutoPkg/Cache/com.github.rtrouton.pkg.RStudio/downloads/RStudio.dmg
AppDmgVersioner: BundleID: org.rstudio.RStudio
AppDmgVersioner: Version: 2021.09.0+351
{'Output': {'app_name': 'RStudio.app',
            'bundleid': 'org.rstudio.RStudio',
            'version': '2021.09.0+351'}}
com.github.homebysix.VersionSplitter/VersionSplitter
{'Input': {'split_on': '+', 'version': '2021.09.0+351'}}
VersionSplitter: Split version: 2021.09.0
{'Output': {'version': '2021.09.0'}}
AppPkgCreator
{'Input': {'bundleid': 'org.rstudio.RStudio', 'version': '2021.09.0'}}
AppPkgCreator: Mounted disk image /Users/username/Library/AutoPkg/Cache/com.github.rtrouton.pkg.RStudio/downloads/RStudio.dmg
AppPkgCreator: Using path '/private/tmp/dmg.cILKMO/RStudio.app' matched from globbed '/private/tmp/dmg.cILKMO/*.app'.
AppPkgCreator: Copied /private/tmp/dmg.cILKMO/RStudio.app to /Users/username/Library/AutoPkg/Cache/com.github.rtrouton.pkg.RStudio/payload/Applications/RStudio.app
AppPkgCreator: Connecting
AppPkgCreator: Sending packaging request
AppPkgCreator: Disconnecting
AppPkgCreator: Failed to close socket: [Errno 9] Bad file descriptor
{'Output': {'app_pkg_creator_summary_result': {'data': {'identifier': 'org.rstudio.RStudio',
                                                        'pkg_path': '/Users/username/Library/AutoPkg/Cache/com.github.rtrouton.pkg.RStudio/RStudio-2021.09.0.pkg',
                                                        'version': '2021.09.0'},
                                               'report_fields': ['identifier',
                                                                 'version',
                                                                 'pkg_path'],
                                               'summary_text': 'The following '
                                                               'packages were '
                                                               'built:'},
            'new_package_request': True,
            'version': '2021.09.0'}}
{'AUTOPKG_VERSION': '2.3.1',
 'CHECK_FILESIZE_ONLY': False,
 'NAME': 'RStudio',
 'PARENT_RECIPES': ['/Users/username/Desktop/RStudio/RStudio.download.recipe'],
 'RECIPE_CACHE_DIR': '/Users/username/Library/AutoPkg/Cache/com.github.rtrouton.pkg.RStudio',
 'RECIPE_DIR': '/Users/username/Desktop/RStudio',
 'RECIPE_OVERRIDE_DIRS': ['~/Library/AutoPkg/RecipeOverrides'],
 'RECIPE_PATH': '/Users/username/Desktop/RStudio/RStudio.pkg.recipe',
 'RECIPE_REPOS': {'/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.MLBZ521-recipes': {'URL': 'https://github.com/autopkg/MLBZ521-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.Yohan460-recipes': {'URL': 'https://github.com/autopkg/Yohan460-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.andrewvalentine-recipes': {'URL': 'https://github.com/autopkg/andrewvalentine-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.apettinen-recipes': {'URL': 'https://github.com/autopkg/apettinen-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.bkerns-recipes': {'URL': 'https://github.com/autopkg/bkerns-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.bnpl-recipes': {'URL': 'https://github.com/autopkg/bnpl-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.cgerke-recipes': {'URL': 'https://github.com/autopkg/cgerke-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.dataJAR-recipes': {'URL': 'https://github.com/autopkg/dataJAR-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.foigus-recipes': {'URL': 'https://github.com/autopkg/foigus-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.golbiga-recipes': {'URL': 'https://github.com/autopkg/golbiga-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.grahamgilbert-recipes': {'URL': 'https://github.com/autopkg/grahamgilbert-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.hansen-m-recipes': {'URL': 'https://github.com/autopkg/hansen-m-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.hjuutilainen-recipes': {'URL': 'https://github.com/autopkg/hjuutilainen-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.homebysix-recipes': {'URL': 'https://github.com/autopkg/homebysix-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.jleggat-recipes': {'URL': 'https://github.com/autopkg/jleggat-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.joshua-d-miller-recipes': {'URL': 'https://github.com/autopkg/joshua-d-miller-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.justinrummel-recipes': {'URL': 'https://github.com/autopkg/justinrummel-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.killahquam-recipes': {'URL': 'https://github.com/autopkg/killahquam-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.moofit-recipes': {'URL': 'https://github.com/autopkg/moofit-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.mosen-recipes': {'URL': 'https://github.com/autopkg/mosen-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.n8felton-recipes': {'URL': 'https://github.com/autopkg/n8felton-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.novaksam-recipes': {'URL': 'https://github.com/autopkg/novaksam-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.patgmac-recipes': {'URL': 'https://github.com/autopkg/patgmac-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.paul-cossey-recipes': {'URL': 'https://github.com/autopkg/paul-cossey-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.peshay-recipes': {'URL': 'https://github.com/autopkg/peshay-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes': {'URL': 'https://github.com/autopkg/recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.rtrouton-recipes': {'URL': 'https://github.com/autopkg/rtrouton-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.rustymyers-recipes': {'URL': 'https://github.com/autopkg/rustymyers-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.scriptingosx-recipes': {'URL': 'https://github.com/autopkg/scriptingosx-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.smithjw-recipes': {'URL': 'https://github.com/autopkg/smithjw-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.tbridge-recipes': {'URL': 'https://github.com/autopkg/tbridge-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.timsutton-recipes': {'URL': 'https://github.com/autopkg/timsutton-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.triti-recipes': {'URL': 'https://github.com/autopkg/triti-recipes'},
                  '/Users/username/Library/AutoPkg/RecipeRepos/com.github.rtrouton.autopkg_recipes': {'URL': 'https://github.com/rtrouton/autopkg_recipes'}},
 'RECIPE_SEARCH_DIRS': ['.',
                        '~/Library/AutoPkg/Recipes',
                        '/Library/AutoPkg/Recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.apettinen-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.bkerns-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.bnpl-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.cgerke-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.foigus-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.golbiga-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.grahamgilbert-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.hansen-m-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.hjuutilainen-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.homebysix-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.jleggat-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.joshua-d-miller-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.justinrummel-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.killahquam-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.mosen-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.n8felton-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.novaksam-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.rtrouton-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.rustymyers-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.scriptingosx-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.smithjw-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.tbridge-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.timsutton-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.rtrouton.autopkg_recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.peshay-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.patgmac-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.dataJAR-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.triti-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.MLBZ521-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.paul-cossey-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.Yohan460-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.andrewvalentine-recipes',
                        '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.moofit-recipes',
                        '/Users/username/Desktop/RStudio'],
 'app_name': 'RStudio.app',
 'app_pkg_creator_summary_result': {'data': {'identifier': 'org.rstudio.RStudio',
                                             'pkg_path': '/Users/username/Library/AutoPkg/Cache/com.github.rtrouton.pkg.RStudio/RStudio-2021.09.0.pkg',
                                             'version': '2021.09.0'},
                                    'report_fields': ['identifier',
                                                      'version',
                                                      'pkg_path'],
                                    'summary_text': 'The following packages '
                                                    'were built:'},
 'bundleid': 'org.rstudio.RStudio',
 'dmg_path': '/Users/username/Library/AutoPkg/Cache/com.github.rtrouton.pkg.RStudio/downloads/RStudio.dmg',
 'download_changed': True,
 'etag': '"268673dffae51e2ee848ff46a928a00e-24"',
 'filename': 'RStudio.dmg',
 'input_path': '/Users/username/Library/AutoPkg/Cache/com.github.rtrouton.pkg.RStudio/downloads/RStudio.dmg/RStudio.app',
 'last_modified': 'Wed, 29 Sep 2021 21:29:38 GMT',
 'match': 'download1.rstudio.org/desktop/macos/RStudio-2021.09.0-351.dmg',
 'new_package_request': True,
 'pathname': '/Users/username/Library/AutoPkg/Cache/com.github.rtrouton.pkg.RStudio/downloads/RStudio.dmg',
 'pkg_path': '/Users/username/Library/AutoPkg/Cache/com.github.rtrouton.pkg.RStudio/RStudio-2021.09.0.pkg',
 'prefetch_filename': False,
 're_pattern': '(?P<url>download.*?RStudio-.*\\.dmg)',
 'requirement': 'identifier "org.rstudio.RStudio" and anchor apple generic and '
                'certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ '
                'and certificate leaf[field.1.2.840.113635.100.6.1.13] /* '
                'exists */ and certificate leaf[subject.OU] = FYF2F5GFX4',
 'result_output_var_name': 'match',
 'split_on': '+',
 'url': 'https://download1.rstudio.org/desktop/macos/RStudio-2021.09.0-351.dmg',
 'url_downloader_summary_result': {'data': {'download_path': '/Users/username/Library/AutoPkg/Cache/com.github.rtrouton.pkg.RStudio/downloads/RStudio.dmg'},
                                   'summary_text': 'The following new items '
                                                   'were downloaded:'},
 'verbose': 3,
 'version': '2021.09.0'}
Receipt written to /Users/username/Library/AutoPkg/Cache/com.github.rtrouton.pkg.RStudio/receipts/com.github.rtrouton.pkg-receipt-20211103-104223.plist

The following new items were downloaded:
    Download Path                                                                               
    -------------                                                                               
    /Users/username/Library/AutoPkg/Cache/com.github.rtrouton.pkg.RStudio/downloads/RStudio.dmg  

The following packages were built:
    Identifier           Version    Pkg Path                                                                                    
    ----------           -------    --------                                                                                    
    org.rstudio.RStudio  2021.09.0  /Users/username/Library/AutoPkg/Cache/com.github.rtrouton.pkg.RStudio/RStudio-2021.09.0.pkg  
username@computername RStudio %  
skoobasteeve commented 2 years ago

@rtrouton Working in my environment also, thanks for implementing the fix!