Closed macmule closed 3 years ago
Amends munki recipe to look at "CFBundleShortVersionString" for the installs array.
Processing /Users/ben/Git/other-recipes/precursorca-recipes/Cisco/Webex.munki.recipe... WARNING: /Users/ben/Git/other-recipes/precursorca-recipes/Cisco/Webex.munki.recipe is missing trust info and FAIL_RECIPES_WITHOUT_TRUST_INFO is not set. Proceeding... URLDownloader {'Input': {'filename': 'Webex.dmg', 'url': 'https://binaries.webex.com/WebexTeamsDesktop-MACOS-Gold/Webex.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: Item at URL is unchanged. URLDownloader: Using existing /Users/ben/Library/AutoPkg/Cache/com.github.precursorca.munki.Webex/downloads/Webex.dmg {'Output': {'pathname': '/Users/ben/Library/AutoPkg/Cache/com.github.precursorca.munki.Webex/downloads/Webex.dmg'}} EndOfCheckPhase {'Input': {}} {'Output': {}} CodeSignatureVerifier {'Input': {'input_path': '/Users/ben/Library/AutoPkg/Cache/com.github.precursorca.munki.Webex/downloads/Webex.dmg/Webex.app', 'requirement': 'identifier "Cisco-Systems.Spark" 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] = ' 'DE8Y96K9QP'}} CodeSignatureVerifier: Mounted disk image /Users/ben/Library/AutoPkg/Cache/com.github.precursorca.munki.Webex/downloads/Webex.dmg CodeSignatureVerifier: Verifying code signature... CodeSignatureVerifier: Deep verification enabled... CodeSignatureVerifier: Strict verification not defined. Using codesign defaults... CodeSignatureVerifier: /private/tmp/dmg.00JWFY/Webex.app: valid on disk CodeSignatureVerifier: /private/tmp/dmg.00JWFY/Webex.app: satisfies its Designated Requirement CodeSignatureVerifier: /private/tmp/dmg.00JWFY/Webex.app: explicit requirement satisfied CodeSignatureVerifier: Signature is valid {'Output': {}} Versioner {'Input': {'input_plist_path': '/Users/ben/Library/AutoPkg/Cache/com.github.precursorca.munki.Webex/downloads/Webex.dmg/Webex.app/Contents/Info.plist', 'plist_version_key': 'CFBundleShortVersionString'}} Versioner: No value supplied for skip_single_root_dir, setting default value of: False Versioner: Mounted disk image /Users/ben/Library/AutoPkg/Cache/com.github.precursorca.munki.Webex/downloads/Webex.dmg Versioner: Found version 41.6.1.19162 in file /Users/ben/Library/AutoPkg/Cache/com.github.precursorca.munki.Webex/downloads/Webex.dmg/Webex.app/Contents/Info.plist {'Output': {'version': '41.6.1.19162'}} MunkiPkginfoMerger {'Input': {'additional_pkginfo': {'version': '41.6.1.19162'}, 'pkginfo': {'catalogs': ['testing'], 'description': 'Make teamwork your best work.', 'developer': 'Cisco', 'display_name': 'Webex', 'name': 'Webex', 'unattended_install': True}}} MunkiPkginfoMerger: Merged {'version': '41.6.1.19162'} into pkginfo {'Output': {'pkginfo': {'catalogs': ['testing'], 'description': 'Make teamwork your best work.', 'developer': 'Cisco', 'display_name': 'Webex', 'name': 'Webex', 'unattended_install': True, 'version': '41.6.1.19162'}}} MunkiImporter {'Input': {'MUNKI_REPO': '/Users/Shared/munki_repo', 'pkg_path': '/Users/ben/Library/AutoPkg/Cache/com.github.precursorca.munki.Webex/downloads/Webex.dmg', 'pkginfo': {'catalogs': ['testing'], 'description': 'Make teamwork your best work.', 'developer': 'Cisco', 'display_name': 'Webex', 'name': 'Webex', 'unattended_install': True, 'version': '41.6.1.19162'}, 'repo_subdirectory': 'apps/Webex'}} MunkiImporter: No value supplied for MUNKI_REPO_PLUGIN, setting default value of: FileRepo MunkiImporter: No value supplied for MUNKILIB_DIR, setting default value of: /usr/local/munki MunkiImporter: No value supplied for force_munki_repo_lib, setting default value of: False MunkiImporter: Using repo lib: AutoPkgLib MunkiImporter: plugin: FileRepo MunkiImporter: repo: /Users/Shared/munki_repo MunkiImporter: Copied pkginfo to: /Users/Shared/munki_repo/pkgsinfo/apps/Webex/Webex-41.6.1.19162__1.plist MunkiImporter: pkg to: /Users/Shared/munki_repo/pkgs/apps/Webex/Webex-41.6.1.19162__1.dmg {'Output': {'munki_importer_summary_result': {'data': {'catalogs': 'testing', 'icon_repo_path': '', 'name': 'Webex', 'pkg_repo_path': 'apps/Webex/Webex-41.6.1.19162__1.dmg', 'pkginfo_path': 'apps/Webex/Webex-41.6.1.19162__1.plist', 'version': '41.6.1.19162'}, 'report_fields': ['name', 'version', 'catalogs', 'pkginfo_path', 'pkg_repo_path', 'icon_repo_path'], 'summary_text': 'The following ' 'new items were ' 'imported into ' 'Munki:'}, 'munki_info': {'_metadata': {'created_by': 'ben', 'creation_date': datetime.datetime(2021, 6, 8, 14, 48, 59), 'munki_version': '5.3.0.4335', 'os_version': '10.15.7'}, 'autoremove': False, 'catalogs': ['testing'], 'description': 'Make teamwork your best work.', 'developer': 'Cisco', 'display_name': 'Webex', 'installer_item_hash': '339db0cffd1beead2a38fe87f282eda3c529b915abf907440f9cc3ca35a4c7e4', 'installer_item_location': 'apps/Webex/Webex-41.6.1.19162__1.dmg', 'installer_item_size': 161799, 'installer_type': 'copy_from_dmg', 'installs': [{'CFBundleIdentifier': 'Cisco-Systems.Spark', 'CFBundleName': 'Webex', 'CFBundleShortVersionString': '41.6.1.19162', 'CFBundleVersion': '19162', 'minosversion': '10.12', 'path': '/Applications/Webex.app', 'type': 'application', 'version_comparison_key': 'CFBundleShortVersionString'}], 'items_to_copy': [{'destination_path': '/Applications', 'source_item': 'Webex.app'}], 'minimum_os_version': '10.12', 'name': 'Webex', 'unattended_install': True, 'uninstall_method': 'remove_copied_items', 'uninstallable': True, 'version': '41.6.1.19162'}, 'munki_repo_changed': True, 'pkg_repo_path': '/Users/Shared/munki_repo/pkgs/apps/Webex/Webex-41.6.1.19162__1.dmg', 'pkginfo_repo_path': '/Users/Shared/munki_repo/pkgsinfo/apps/Webex/Webex-41.6.1.19162__1.plist'}} Receipt written to /Users/ben/Library/AutoPkg/Cache/com.github.precursorca.munki.Webex/receipts/Webex.munki-receipt-20210608-154859.plist The following new items were imported into Munki: Name Version Catalogs Pkginfo Path Pkg Repo Path Icon Repo Path ---- ------- -------- ------------ ------------- -------------- Webex 41.6.1.19162 testing apps/Webex/Webex-41.6.1.19162__1.plist apps/Webex/Webex-41.6.1.19162__1.dmg
Actually.. i can now see why cfbundleversion is used.. closing!
Amends munki recipe to look at "CFBundleShortVersionString" for the installs array.