autopkg / bnpl-recipes

AutoPkg recipes
MIT License
4 stars 14 forks source link

IzPackExecutor-install.expect #61

Closed paul-cossey closed 2 years ago

paul-cossey commented 2 years ago

Updated IzPackExecutor-install.expect so that it now completes the necessary steps for a standard install as per issue: https://github.com/autopkg/bnpl-recipes/issues/60

output from a -vvv run

autopkg run -vvv /Users/paul/Downloads/bnpl-recipes-master/SquirreLSQL/SQuirreLSQL.munki.recipe 
Processing /Users/paul/Downloads/bnpl-recipes-master/SquirreLSQL/SQuirreLSQL.munki.recipe...
WARNING: /Users/paul/Downloads/bnpl-recipes-master/SquirreLSQL/SQuirreLSQL.munki.recipe is missing trust info and FAIL_RECIPES_WITHOUT_TRUST_INFO is not set. Proceeding...
{'AUTOPKG_VERSION': '2.3.1',
 'GIT_PATH': '/Applications/Xcode.app/Contents/Developer/usr/bin/git',
 'MUNKI_REPO': '/Users/Shared/munki_repo',
 'MUNKI_REPO_SUBDIR': 'apps',
 'NAME': 'SQuirreLSQL',
 'PARENT_RECIPES': ['/Users/paul/Downloads/bnpl-recipes-master/SquirreLSQL/SQuirreLSQL.pkg.recipe',
                    '/Users/paul/Downloads/bnpl-recipes-master/SquirreLSQL/SQuirreLSQL.download.recipe'],
 'RECIPE_CACHE_DIR': '/Users/paul/Library/AutoPkg/Cache/com.github.bnpl.autopkg.munki.squirrelsql',
 'RECIPE_DIR': '/Users/paul/Downloads/bnpl-recipes-master/SquirreLSQL',
 'RECIPE_OVERRIDE_DIRS': ['~/Library/AutoPkg/RecipeOverrides'],
 'RECIPE_PATH': '/Users/paul/Downloads/bnpl-recipes-master/SquirreLSQL/SQuirreLSQL.munki.recipe',
 'RECIPE_REPOS': {},
 'RECIPE_REPO_DIR': '/Users/Shared/munki_repo',
 'RECIPE_SEARCH_DIRS': ['.',
                        '~/Library/AutoPkg/Recipes',
                        '/Library/AutoPkg/Recipes',
                        '/Users/paul/Downloads/bnpl-recipes-master/SquirreLSQL',
                        '/Users/paul/Downloads/bnpl-recipes-master/SquirreLSQL'],
 'pkginfo': {'catalogs': ['testing'],
             'category': 'Developer Tools',
             'description': 'SQuirreL SQL Client is a graphical Java program '
                            'that will allow you to view the structure of a '
                            'JDBC compliant database, browse the data in '
                            'tables, issue SQL commands etc.',
             'display_name': 'SquirreL SQL Client',
             'name': 'SQuirreLSQL',
             'unattended_install': True,
             'unattended_uninstall': True,
             'uninstallable': True},
 'verbose': 3}
URLTextSearcher
{'Input': {'re_pattern': 'href="(http://sourceforge.net/projects/squirrel-sql/.*-install.jar/download)">Install '
                         'jar of SQuirreL .* for Mac.*',
           'request_headers': {'user-agent': 'Mozilla/5.0 (Macintosh; Intel '
                                             'Mac OS X 10.11; rv:46.0) '
                                             'Gecko/20100101 Firefox/46.0'},
           'result_output_var_name': 'prematch',
           'url': 'http://squirrel-sql.sourceforge.net/#installation'}}
URLTextSearcher: Found matching text (prematch): http://sourceforge.net/projects/squirrel-sql/files/1-stable/4.4.0/squirrel-sql-4.4.0-MACOSX-install.jar/download
{'Output': {'prematch': 'http://sourceforge.net/projects/squirrel-sql/files/1-stable/4.4.0/squirrel-sql-4.4.0-MACOSX-install.jar/download'}}
URLTextSearcher
{'Input': {'re_pattern': 'http-equiv="refresh" content=".*; url=(.*)"',
           'request_headers': {'user-agent': 'Mozilla/5.0 (Macintosh; Intel '
                                             'Mac OS X 10.11; rv:46.0) '
                                             'Gecko/20100101 Firefox/46.0'},
           'result_output_var_name': 'match',
           'url': 'http://sourceforge.net/projects/squirrel-sql/files/1-stable/4.4.0/squirrel-sql-4.4.0-MACOSX-install.jar/download'}}
URLTextSearcher: Found matching text (match): https://downloads.sourceforge.net/project/squirrel-sql/1-stable/4.4.0/squirrel-sql-4.4.0-MACOSX-install.jar?ts=gAAAAABiYVpkWi-Dyt20E0Bpii0fzMMHOlnKHrlO7aVMFk0VHaPEBE2Cdyfwb0U29VPGwlGD8rcl-2vSZatezpBx3lMPDhtAMQ%3D%3D&use_mirror=deac-ams&r=
{'Output': {'match': 'https://downloads.sourceforge.net/project/squirrel-sql/1-stable/4.4.0/squirrel-sql-4.4.0-MACOSX-install.jar?ts=gAAAAABiYVpkWi-Dyt20E0Bpii0fzMMHOlnKHrlO7aVMFk0VHaPEBE2Cdyfwb0U29VPGwlGD8rcl-2vSZatezpBx3lMPDhtAMQ%3D%3D&use_mirror=deac-ams&r='}}
URLTextSearcher
{'Input': {'re_pattern': 'http-equiv="refresh" content=".*; '
                         'url=.*/(.*\\.jar).*"',
           'request_headers': {'user-agent': 'Mozilla/5.0 (Macintosh; Intel '
                                             'Mac OS X 10.11; rv:46.0) '
                                             'Gecko/20100101 Firefox/46.0'},
           'result_output_var_name': 'namematch',
           'url': 'http://sourceforge.net/projects/squirrel-sql/files/1-stable/4.4.0/squirrel-sql-4.4.0-MACOSX-install.jar/download'}}
URLTextSearcher: Found matching text (namematch): squirrel-sql-4.4.0-MACOSX-install.jar
{'Output': {'namematch': 'squirrel-sql-4.4.0-MACOSX-install.jar'}}
URLDownloader
{'Input': {'CHECK_FILESIZE_ONLY': True,
           'filename': 'squirrel-sql-4.4.0-MACOSX-install.jar',
           'request_headers': {'user-agent': 'Mozilla/5.0 (Macintosh; Intel '
                                             'Mac OS X 10.11; rv:46.0) '
                                             'Gecko/20100101 Firefox/46.0'},
           'url': 'https://downloads.sourceforge.net/project/squirrel-sql/1-stable/4.4.0/squirrel-sql-4.4.0-MACOSX-install.jar?ts=gAAAAABiYVpkWi-Dyt20E0Bpii0fzMMHOlnKHrlO7aVMFk0VHaPEBE2Cdyfwb0U29VPGwlGD8rcl-2vSZatezpBx3lMPDhtAMQ%3D%3D&use_mirror=deac-ams&r='}}
URLDownloader: No value supplied for prefetch_filename, setting default value of: False
URLDownloader: File size returned by webserver matches that of the cached file: 59938930 bytes
URLDownloader: WARNING: Matching a download by filesize is a fallback mechanism that does not guarantee that a build is unchanged.
URLDownloader: Using existing /Users/paul/Library/AutoPkg/Cache/com.github.bnpl.autopkg.munki.squirrelsql/downloads/squirrel-sql-4.4.0-MACOSX-install.jar
{'Output': {'pathname': '/Users/paul/Library/AutoPkg/Cache/com.github.bnpl.autopkg.munki.squirrelsql/downloads/squirrel-sql-4.4.0-MACOSX-install.jar'}}
EndOfCheckPhase
{'Input': {}}
{'Output': {}}
PkgRootCreator
{'Input': {'pkgdirs': {'Applications': '0775'},
           'pkgroot': '/Users/paul/Library/AutoPkg/Cache/com.github.bnpl.autopkg.munki.squirrelsql/SQuirreLSQL'}}
PkgRootCreator: Created /Users/paul/Library/AutoPkg/Cache/com.github.bnpl.autopkg.munki.squirrelsql/SQuirreLSQL
PkgRootCreator: Creating Applications
PkgRootCreator: Created /Users/paul/Library/AutoPkg/Cache/com.github.bnpl.autopkg.munki.squirrelsql/SQuirreLSQL/Applications
{'Output': {}}
com.github.bnpl.autopkg.proc.IzPackExecutor/IzPackExecutor
{'Input': {'app_installer': '/Users/paul/Library/AutoPkg/Cache/com.github.bnpl.autopkg.munki.squirrelsql/downloads/squirrel-sql-4.4.0-MACOSX-install.jar',
           'app_root': '/Users/paul/Library/AutoPkg/Cache/com.github.bnpl.autopkg.munki.squirrelsql/SQuirreLSQL/Applications/SquirreL '
                       'SQL.app'}}
spawn java -jar /Users/paul/Library/AutoPkg/Cache/com.github.bnpl.autopkg.munki.squirrelsql/downloads/squirrel-sql-4.4.0-MACOSX-install.jar -console
Command line arguments: -console 
1

───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Welcome
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Welcome to the installation of SQuirreL SQL Client 4.4.0!
This software is developed by: 
 - Gerd Wagner <gerdwagner@users.sourceforge.net>
 - Rob Manning <manningr@users.sourceforge.net>
 - Colin Bell <colbell@users.sourceforge.net>
The homepage is at: http://www.squirrelsql.org

Press 1 to continue, 2 to quit, 3 to redisplay
1

───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Information
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

SQuirreL SQL Client ReadMe

SQuirreL SQL Client is a graphical Java program that will
allow you to view the structure of a JDBC compliant database, browse the
data in tables, issue SQL commands etc. It is free software, and you are
welcome to redistribute it under the terms of the GNU Lesser General
Public License.
The following compatibility matrix shows which version of the Java
Runtime Environment (JRE) is required (minimum version) for different 
versions of the SQuirreL SQL Client:

SQuirreL SQL Client Version
JRE Minimum Version

4.3.0 and higher
11

3.8.1 - 4.2.0
1.8

3.0 - 3.8.0
1.6

2.4 - 2.6.x
1.5

2.0 - 2.3.2
1.4

The installation offers two install packages Base and Standard
and a number of optional plugins. The Standard package contains the
following plugins:

Code Completion - Offers code completion the same way as modern IDEs do.

Syntax - Syntax highlighting.

Edit Extras - Auxiliary functions towork with SQL code (for example, formatting)

Graph - create a chart of tablesand foreign-key relationships between them

SQL Script - Generation of SQL and DDL scripts

SQL Bookmarks - Managing SQL code templates

Look and Feel - Switching the look and feel

Look and Feel - Switching the look and feel

Data import - Import arbitary files into the database

The following optional plugins are provided:

DBCopy - Copy database objects from one session to another
DB2 - DBMS-specific capabilities
Derby - DBMS-specific capabilities
Firebird - DBMS-specific capabilities
Firebird Manager - Manage your Firebird Database Server
Hibernate - Tools for developing Hibernate applications
H2 - DBMS-specific capabilities
Informix - DBMS-specific capabilities
Microsoft SQL Server - DBMS-specific capabilities
MySQL - DBMS-specific capabilities
Oracle - DBMS-specific capabilities
PostgreSQL - DBMS-specific capabilities
Refactoring - refactor your database schema using refactoring
patterns
Smart Tools - Handy tools for manipulating data
Session Scripts - run SQL when opening an session
SQL Parametrisation - put variables into your SQL statements
SQL Replace - place environment variables into your SQL
statements
SQL Validator - validate SQL against the ISO SQL-99 standard
Sybase - DBMS-specific capabilities
Internationalization - tools for translators
WIKI tables configurations - How to copy a table as WIKI text for a specific WIKI engine
Swing Violation Detector - Help to detect violated rules of the Swing programming model

For Windows the file squirrel-sql.bat
will run the application. For Unix the file is squirrel-sql.sh. On some
operating systems a shortcut will be created in the menu
system as part of the installation process.

Press 1 to continue, 2 to quit, 3 to redisplay
1
Please read the following information: 

───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Target Path
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Select the installation path:  [/Applications/SQuirreLSQL.app] 
/Users/paul/Library/AutoPkg/Cache/com.github.bnpl.autopkg.munki.squirrelsql/SQuirreLSQL/Applications/SquirreL SQL.app
------------------------------------------------------------------------------------------------------------------------------------------------------------
Message

The target directory will be created: 
/Users/paul/Library/AutoPkg/Cache/com.github.bnpl.autopkg.munki.squirrelsql/SQuirreLSQL/Applications/SquirreL SQL.app
------------------------------------------------------------------------------------------------------------------------------------------------------------
Enter O for OK, C to Cancel: 
O

Press 1 to continue, 2 to quit, 3 to redisplay
1

───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Select Installation Packages
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Select the packs you want to install:

  [x] Pack 'Base' required
--------------------------------------
  [x] Include optional pack 'Standard'
--------------------------------------
Enter Y for Yes, N for No: 
Y
---------------------------------------------------------------------------------------
  [ ] Include optional pack 'Optional Plugin - Mac OS Plugin (older Mac versions only)'
---------------------------------------------------------------------------------------
Enter Y for Yes, N for No: 
N
---------------------------------------------------------
  [ ] Include optional pack 'Optional Plugin - Greenplum'
---------------------------------------------------------
Enter Y for Yes, N for No: 
N
-------------------------------------------------------------------------
  [ ] Include optional pack 'Optional Plugin - WIKI table configurations'
-------------------------------------------------------------------------
Enter Y for Yes, N for No: 
N
------------------------------------------------------------------------
  [ ] Include optional pack 'Optional Plugin - Swing Violation Dedector'
------------------------------------------------------------------------
Enter Y for Yes, N for No: 
N
------------------------------------------------------------
  [ ] Include optional pack 'Optional Plugin - Multi Source'
------------------------------------------------------------
Enter Y for Yes, N for No: 
N
-------------------------------------------------------
  [ ] Include optional pack 'Optional Plugin - Vertica'
-------------------------------------------------------
Enter Y for Yes, N for No: 
N
---------------------------------------------------
  [ ] Include optional pack 'Optional Plugin - DB2'
---------------------------------------------------
Enter Y for Yes, N for No: 
N
-----------------------------------------------------
  [ ] Include optional pack 'Optional Plugin - Derby'
-----------------------------------------------------
Enter Y for Yes, N for No: 
N
---------------------------------------------------------
  [ ] Include optional pack 'Optional Plugin - Firebird '
---------------------------------------------------------
Enter Y for Yes, N for No: 
N
---------------------------------------------------------
  [ ] Include optional pack 'Optional Plugin - Hibernate'
---------------------------------------------------------
Enter Y for Yes, N for No: 
N
---------------------------------------------------
  [ ] Include optional pack 'Optional Plugin - H2 '
---------------------------------------------------
Enter Y for Yes, N for No: 
N
---------------------------------------------------------
  [ ] Include optional pack 'Optional Plugin - Informix '
---------------------------------------------------------
Enter Y for Yes, N for No: 
N
---------------------------------------------------------------------
  [ ] Include optional pack 'Optional Plugin - Microsoft SQL Server '
---------------------------------------------------------------------
Enter Y for Yes, N for No: 
N
------------------------------------------------------
  [ ] Include optional pack 'Optional Plugin - MySQL '
------------------------------------------------------
Enter Y for Yes, N for No: 
N
--------------------------------------------------------
  [ ] Include optional pack 'Optional Plugin - Netezza '
--------------------------------------------------------
Enter Y for Yes, N for No: 
N
------------------------------------------------------
  [ ] Include optional pack 'Optional Plugin - Oracle'
------------------------------------------------------
Enter Y for Yes, N for No: 
N
-----------------------------------------------------------
  [ ] Include optional pack 'Optional Plugin - PostgreSQL '
-----------------------------------------------------------
Enter Y for Yes, N for No: 
N
---------------------------------------------------------------
  [ ] Include optional pack 'Optional Plugin - Session Scripts'
---------------------------------------------------------------
Enter Y for Yes, N for No: 
N
------------------------------------------------------------
  [ ] Include optional pack 'Optional Plugin - Smart Tools '
------------------------------------------------------------
Enter Y for Yes, N for No: 
N
--------------------------------------------------------------------
  [ ] Include optional pack 'Optional Plugin - SQL Parametrisation '
--------------------------------------------------------------------
Enter Y for Yes, N for No: 
N
------------------------------------------------------------
  [ ] Include optional pack 'Optional Plugin - SQL Replace '
------------------------------------------------------------
Enter Y for Yes, N for No: 
N
--------------------------------------------------------------
  [ ] Include optional pack 'Optional Plugin - SQL Validator '
--------------------------------------------------------------
Enter Y for Yes, N for No: 
N
-------------------------------------------------------
  [ ] Include optional pack 'Optional Plugin - Sybase '
-------------------------------------------------------
Enter Y for Yes, N for No: 
N
---------------------------------------------------------------------
  [ ] Include optional pack 'Optional Plugin - High resolution icon '
---------------------------------------------------------------------
Enter Y for Yes, N for No: 
N
---------------------------------------------------------------------
  [ ] Include optional pack 'Optional Plugin - Internationalization '
---------------------------------------------------------------------
Enter Y for Yes, N for No: 
N
--------------------------------------------------------------------------
  [ ] Include optional pack 'Optional Plugin - Intersystems Cache Plugin '
--------------------------------------------------------------------------
Enter Y for Yes, N for No: 
N
-------------------------------------------------------------------------
  [ ] Include optional pack 'Optional Translation - Brazilian Portuguese'
-------------------------------------------------------------------------
Enter Y for Yes, N for No: 
N
--------------------------------------------------------------
  [ ] Include optional pack 'Optional Translation - Bulgarian'
--------------------------------------------------------------
Enter Y for Yes, N for No: 
N
----------------------------------------------------------
  [ ] Include optional pack 'Optional Translation - Czech'
----------------------------------------------------------
Enter Y for Yes, N for No: 
N
-----------------------------------------------------------------------
  [ ] Include optional pack 'Optional Translation - Simplified Chinese'
-----------------------------------------------------------------------
Enter Y for Yes, N for No: 
N
-----------------------------------------------------------
  [ ] Include optional pack 'Optional Translation - French'
-----------------------------------------------------------
Enter Y for Yes, N for No: 
N
-----------------------------------------------------------
  [ ] Include optional pack 'Optional Translation - German'
-----------------------------------------------------------
Enter Y for Yes, N for No: 
N
------------------------------------------------------------
  [ ] Include optional pack 'Optional Translation - Italian'
------------------------------------------------------------
Enter Y for Yes, N for No: 
N
-------------------------------------------------------------
  [ ] Include optional pack 'Optional Translation - Japanese'
-------------------------------------------------------------
Enter Y for Yes, N for No: 
N
-----------------------------------------------------------
  [ ] Include optional pack 'Optional Translation - Korean'
-----------------------------------------------------------
Enter Y for Yes, N for No: 
N
-----------------------------------------------------------
  [ ] Include optional pack 'Optional Translation - Polish'
-----------------------------------------------------------
Enter Y for Yes, N for No: 
N
------------------------------------------------------------
  [ ] Include optional pack 'Optional Translation - Russian'
------------------------------------------------------------
Enter Y for Yes, N for No: 
N
------------------------------------------------------------
  [ ] Include optional pack 'Optional Translation - Spanish'
------------------------------------------------------------
Enter Y for Yes, N for No: 
N
Done!

Press 1 to continue, 2 to quit, 3 to redisplay
1

───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Installation
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

====================
Installation started
Framework: 5.1.3-84aaf (IzPack)
Platform: mac_osx,version=12.3.1,arch=x86,symbolicName=null,javaVersion=1.8.0_331
[ Starting to unpack ]
[ Processing package: Base (1/2) ]
Cleaning up the target folder ...
[ Processing package: Standard (2/2) ]
Cleaning up the target folder ...
[ Unpacking finished ]
Installation finished

───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Installation Finished
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

-----------------------------------------
Generate an automatic installation script
-----------------------------------------
Enter Y for Yes, N for No: 
N
Installation was successful
Application installed on /Users/paul/Library/AutoPkg/Cache/com.github.bnpl.autopkg.munki.squirrelsql/SQuirreLSQL/Applications/SquirreL SQL.app
[ Writing the uninstaller data ... ]
[ Console installation done ]
4.4.0
{'Output': {}}
PlistEditor
{'Input': {'input_plist_path': '/Users/paul/Library/AutoPkg/Cache/com.github.bnpl.autopkg.munki.squirrelsql/SQuirreLSQL/Applications/SquirreL '
                               'SQL.app/Contents/Info.plist',
           'output_plist_path': '/Users/paul/Library/AutoPkg/Cache/com.github.bnpl.autopkg.munki.squirrelsql/SQuirreLSQL/Applications/SquirreL '
                                'SQL.app/Contents/Info.plist',
           'plist_data': {'CFBundleIdentifier': 'org.squirrelsql.client',
                          'CFBundleShortVersionString': '4.4.0',
                          'NSHumanReadableCopyright': 'Copyright (c) 2001-2020 '
                                                      'Colin Bell, Gerd '
                                                      'Wagner, Rob Manning and '
                                                      'others'}}}
PlistEditor: Updated plist at /Users/paul/Library/AutoPkg/Cache/com.github.bnpl.autopkg.munki.squirrelsql/SQuirreLSQL/Applications/SquirreL SQL.app/Contents/Info.plist
{'Output': {}}
PlistReader
{'Input': {'info_path': '/Users/paul/Library/AutoPkg/Cache/com.github.bnpl.autopkg.munki.squirrelsql/SQuirreLSQL/Applications/SquirreL '
                        'SQL.app',
           'plist_keys': {'CFBundleIdentifier': 'PKG_ID',
                          'CFBundleShortVersionString': 'version'}}}
PlistReader: Reading: /Users/paul/Library/AutoPkg/Cache/com.github.bnpl.autopkg.munki.squirrelsql/SQuirreLSQL/Applications/SquirreL SQL.app/Contents/Info.plist
PlistReader: Assigning value of '4.4.0' to output variable 'version'
PlistReader: Assigning value of 'org.squirrelsql.client' to output variable 'PKG_ID'
{'Output': {'plist_reader_output_variables': {'PKG_ID': 'org.squirrelsql.client',
                                              'version': '4.4.0'}}}
PkgCreator
{'Input': {'pkg_request': {'chown': [{'group': 'admin',
                                      'path': 'Applications',
                                      'user': 'root'},
                                     {'group': 'admin',
                                      'mode': '755',
                                      'path': 'Applications/SquirreL '
                                              'SQL.app/Contents/MacOS/squirrel-sql.sh',
                                      'user': 'root'}],
                           'id': 'org.squirrelsql.client',
                           'options': 'purge_ds_store',
                           'pkgdir': '/Users/paul/Library/AutoPkg/Cache/com.github.bnpl.autopkg.munki.squirrelsql',
                           'pkgname': 'SQuirreLSQL-4.4.0'}}}
PkgCreator: Connecting
PkgCreator: Sending packaging request
PkgCreator: Disconnecting
PkgCreator: Failed to close socket: [Errno 9] Bad file descriptor
{'Output': {'new_package_request': True,
            'pkg_creator_summary_result': {'data': {'identifier': 'org.squirrelsql.client',
                                                    'pkg_path': '/Users/paul/Library/AutoPkg/Cache/com.github.bnpl.autopkg.munki.squirrelsql/SQuirreLSQL-4.4.0.pkg',
                                                    'version': '4.4.0'},
                                           'report_fields': ['identifier',
                                                             'version',
                                                             'pkg_path'],
                                           'summary_text': 'The following '
                                                           'packages were '
                                                           'built:'},
            'pkg_path': '/Users/paul/Library/AutoPkg/Cache/com.github.bnpl.autopkg.munki.squirrelsql/SQuirreLSQL-4.4.0.pkg'}}
MunkiImporter
{'Input': {'MUNKI_REPO': '/Users/Shared/munki_repo',
           'pkg_path': '/Users/paul/Library/AutoPkg/Cache/com.github.bnpl.autopkg.munki.squirrelsql/SQuirreLSQL-4.4.0.pkg',
           'pkginfo': {'catalogs': ['testing'],
                       'category': 'Developer Tools',
                       'description': 'SQuirreL SQL Client is a graphical Java '
                                      'program that will allow you to view the '
                                      'structure of a JDBC compliant database, '
                                      'browse the data in tables, issue SQL '
                                      'commands etc.',
                       'display_name': 'SquirreL SQL Client',
                       'name': 'SQuirreLSQL',
                       'unattended_install': True,
                       'unattended_uninstall': True,
                       'uninstallable': True},
           'repo_subdirectory': 'apps'}}
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/SQuirreLSQL-4.4.0.plist
MunkiImporter:            pkg to: /Users/Shared/munki_repo/pkgs/apps/SQuirreLSQL-4.4.0.pkg
{'Output': {'munki_importer_summary_result': {'data': {'catalogs': 'testing',
                                                       'icon_repo_path': '',
                                                       'name': 'SQuirreLSQL',
                                                       'pkg_repo_path': 'apps/SQuirreLSQL-4.4.0.pkg',
                                                       'pkginfo_path': 'apps/SQuirreLSQL-4.4.0.plist',
                                                       'version': '4.4.0'},
                                              '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': 'paul',
                                         'creation_date': datetime.datetime(2022, 4, 21, 13, 29, 43),
                                         'munki_version': '5.5.1.4365',
                                         'os_version': '12.3.1'},
                           'autoremove': False,
                           'catalogs': ['testing'],
                           'category': 'Developer Tools',
                           'description': 'SQuirreL SQL Client is a graphical '
                                          'Java program that will allow you to '
                                          'view the structure of a JDBC '
                                          'compliant database, browse the data '
                                          'in tables, issue SQL commands etc.',
                           'display_name': 'SquirreL SQL Client',
                           'installed_size': 55751,
                           'installer_item_hash': '1c47307aae4c23b48c2f602a36d73094123fe2862162c4fcd5de372e69235b87',
                           'installer_item_location': 'apps/SQuirreLSQL-4.4.0.pkg',
                           'installer_item_size': 47652,
                           'minimum_os_version': '10.5.0',
                           'name': 'SQuirreLSQL',
                           'receipts': [{'installed_size': 55751,
                                         'packageid': 'org.squirrelsql.client',
                                         'version': '4.4.0'}],
                           'unattended_install': True,
                           'unattended_uninstall': True,
                           'uninstall_method': 'removepackages',
                           'uninstallable': True,
                           'version': '4.4.0'},
            'munki_repo_changed': True,
            'pkg_repo_path': '/Users/Shared/munki_repo/pkgs/apps/SQuirreLSQL-4.4.0.pkg',
            'pkginfo_repo_path': '/Users/Shared/munki_repo/pkgsinfo/apps/SQuirreLSQL-4.4.0.plist'}}
{'AUTOPKG_VERSION': '2.3.1',
 'CHECK_FILESIZE_ONLY': True,
 'GIT_PATH': '/Applications/Xcode.app/Contents/Developer/usr/bin/git',
 'MUNKILIB_DIR': '/usr/local/munki',
 'MUNKI_REPO': '/Users/Shared/munki_repo',
 'MUNKI_REPO_PLUGIN': 'FileRepo',
 'MUNKI_REPO_SUBDIR': 'apps',
 'NAME': 'SQuirreLSQL',
 'PARENT_RECIPES': ['/Users/paul/Downloads/bnpl-recipes-master/SquirreLSQL/SQuirreLSQL.pkg.recipe',
                    '/Users/paul/Downloads/bnpl-recipes-master/SquirreLSQL/SQuirreLSQL.download.recipe'],
 'PKG_ID': 'org.squirrelsql.client',
 'RECIPE_CACHE_DIR': '/Users/paul/Library/AutoPkg/Cache/com.github.bnpl.autopkg.munki.squirrelsql',
 'RECIPE_DIR': '/Users/paul/Downloads/bnpl-recipes-master/SquirreLSQL',
 'RECIPE_OVERRIDE_DIRS': ['~/Library/AutoPkg/RecipeOverrides'],
 'RECIPE_PATH': '/Users/paul/Downloads/bnpl-recipes-master/SquirreLSQL/SQuirreLSQL.munki.recipe',
 'RECIPE_REPOS': {},
 'RECIPE_REPO_DIR': '/Users/Shared/munki_repo',
 'RECIPE_SEARCH_DIRS': ['.',
                        '~/Library/AutoPkg/Recipes',
                        '/Library/AutoPkg/Recipes',
                        '/Users/paul/Downloads/bnpl-recipes-master/SquirreLSQL',
                        '/Users/paul/Downloads/bnpl-recipes-master/SquirreLSQL'],
 'app_installer': '/Users/paul/Library/AutoPkg/Cache/com.github.bnpl.autopkg.munki.squirrelsql/downloads/squirrel-sql-4.4.0-MACOSX-install.jar',
 'app_root': '/Users/paul/Library/AutoPkg/Cache/com.github.bnpl.autopkg.munki.squirrelsql/SQuirreLSQL/Applications/SquirreL '
             'SQL.app',
 'download_changed': False,
 'etag': '',
 'filename': 'squirrel-sql-4.4.0-MACOSX-install.jar',
 'force_munki_repo_lib': False,
 'icon_repo_path': '',
 'info_path': '/Users/paul/Library/AutoPkg/Cache/com.github.bnpl.autopkg.munki.squirrelsql/SQuirreLSQL/Applications/SquirreL '
              'SQL.app',
 'input_plist_path': '/Users/paul/Library/AutoPkg/Cache/com.github.bnpl.autopkg.munki.squirrelsql/SQuirreLSQL/Applications/SquirreL '
                     'SQL.app/Contents/Info.plist',
 'izpack_app_ver': '4.4.0',
 'last_modified': '',
 'match': 'https://downloads.sourceforge.net/project/squirrel-sql/1-stable/4.4.0/squirrel-sql-4.4.0-MACOSX-install.jar?ts=gAAAAABiYVpkWi-Dyt20E0Bpii0fzMMHOlnKHrlO7aVMFk0VHaPEBE2Cdyfwb0U29VPGwlGD8rcl-2vSZatezpBx3lMPDhtAMQ%3D%3D&amp;use_mirror=deac-ams&amp;r=',
 'munki_importer_summary_result': {'data': {'catalogs': 'testing',
                                            'icon_repo_path': '',
                                            'name': 'SQuirreLSQL',
                                            'pkg_repo_path': 'apps/SQuirreLSQL-4.4.0.pkg',
                                            'pkginfo_path': 'apps/SQuirreLSQL-4.4.0.plist',
                                            'version': '4.4.0'},
                                   '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': 'paul',
                              'creation_date': datetime.datetime(2022, 4, 21, 13, 29, 43),
                              'munki_version': '5.5.1.4365',
                              'os_version': '12.3.1'},
                'autoremove': False,
                'catalogs': ['testing'],
                'category': 'Developer Tools',
                'description': 'SQuirreL SQL Client is a graphical Java '
                               'program that will allow you to view the '
                               'structure of a JDBC compliant database, browse '
                               'the data in tables, issue SQL commands etc.',
                'display_name': 'SquirreL SQL Client',
                'installed_size': 55751,
                'installer_item_hash': '1c47307aae4c23b48c2f602a36d73094123fe2862162c4fcd5de372e69235b87',
                'installer_item_location': 'apps/SQuirreLSQL-4.4.0.pkg',
                'installer_item_size': 47652,
                'minimum_os_version': '10.5.0',
                'name': 'SQuirreLSQL',
                'receipts': [{'installed_size': 55751,
                              'packageid': 'org.squirrelsql.client',
                              'version': '4.4.0'}],
                'unattended_install': True,
                'unattended_uninstall': True,
                'uninstall_method': 'removepackages',
                'uninstallable': True,
                'version': '4.4.0'},
 'munki_repo_changed': True,
 'namematch': 'squirrel-sql-4.4.0-MACOSX-install.jar',
 'new_package_request': True,
 'output_plist_path': '/Users/paul/Library/AutoPkg/Cache/com.github.bnpl.autopkg.munki.squirrelsql/SQuirreLSQL/Applications/SquirreL '
                      'SQL.app/Contents/Info.plist',
 'pathname': '/Users/paul/Library/AutoPkg/Cache/com.github.bnpl.autopkg.munki.squirrelsql/downloads/squirrel-sql-4.4.0-MACOSX-install.jar',
 'pkg_creator_summary_result': {'data': {'identifier': 'org.squirrelsql.client',
                                         'pkg_path': '/Users/paul/Library/AutoPkg/Cache/com.github.bnpl.autopkg.munki.squirrelsql/SQuirreLSQL-4.4.0.pkg',
                                         'version': '4.4.0'},
                                'report_fields': ['identifier',
                                                  'version',
                                                  'pkg_path'],
                                'summary_text': 'The following packages were '
                                                'built:'},
 'pkg_path': '/Users/Shared/munki_repo/pkgs/apps/SQuirreLSQL-4.4.0.pkg',
 'pkg_repo_path': '/Users/Shared/munki_repo/pkgs/apps/SQuirreLSQL-4.4.0.pkg',
 'pkg_request': {'chown': [{'group': 'admin',
                            'path': 'Applications',
                            'user': 'root'},
                           {'group': 'admin',
                            'mode': '755',
                            'path': 'Applications/SquirreL '
                                    'SQL.app/Contents/MacOS/squirrel-sql.sh',
                            'user': 'root'}],
                 'id': 'org.squirrelsql.client',
                 'infofile': '',
                 'options': 'purge_ds_store',
                 'pkgdir': '/Users/paul/Library/AutoPkg/Cache/com.github.bnpl.autopkg.munki.squirrelsql',
                 'pkgname': 'SQuirreLSQL-4.4.0',
                 'pkgroot': '/Users/paul/Library/AutoPkg/Cache/com.github.bnpl.autopkg.munki.squirrelsql/SQuirreLSQL',
                 'pkgtype': 'flat',
                 'resources': '',
                 'scripts': '',
                 'version': '4.4.0'},
 'pkgdirs': {'Applications': '0775'},
 'pkginfo': {'catalogs': ['testing'],
             'category': 'Developer Tools',
             'description': 'SQuirreL SQL Client is a graphical Java program '
                            'that will allow you to view the structure of a '
                            'JDBC compliant database, browse the data in '
                            'tables, issue SQL commands etc.',
             'display_name': 'SquirreL SQL Client',
             'name': 'SQuirreLSQL',
             'unattended_install': True,
             'unattended_uninstall': True,
             'uninstallable': True},
 'pkginfo_repo_path': '/Users/Shared/munki_repo/pkgsinfo/apps/SQuirreLSQL-4.4.0.plist',
 'pkgroot': '/Users/paul/Library/AutoPkg/Cache/com.github.bnpl.autopkg.munki.squirrelsql/SQuirreLSQL',
 'plist_data': {'CFBundleIdentifier': 'org.squirrelsql.client',
                'CFBundleShortVersionString': '4.4.0',
                'NSHumanReadableCopyright': 'Copyright (c) 2001-2020 Colin '
                                            'Bell, Gerd Wagner, Rob Manning '
                                            'and others'},
 'plist_keys': {'CFBundleIdentifier': 'PKG_ID',
                'CFBundleShortVersionString': 'version'},
 'plist_reader_output_variables': {'PKG_ID': 'org.squirrelsql.client',
                                   'version': '4.4.0'},
 'prefetch_filename': False,
 'prematch': 'http://sourceforge.net/projects/squirrel-sql/files/1-stable/4.4.0/squirrel-sql-4.4.0-MACOSX-install.jar/download',
 're_pattern': 'http-equiv="refresh" content=".*; url=.*/(.*\\.jar).*"',
 'repo_subdirectory': 'apps',
 'request_headers': {'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X '
                                   '10.11; rv:46.0) Gecko/20100101 '
                                   'Firefox/46.0'},
 'result_output_var_name': 'namematch',
 'url': 'https://downloads.sourceforge.net/project/squirrel-sql/1-stable/4.4.0/squirrel-sql-4.4.0-MACOSX-install.jar?ts=gAAAAABiYVpkWi-Dyt20E0Bpii0fzMMHOlnKHrlO7aVMFk0VHaPEBE2Cdyfwb0U29VPGwlGD8rcl-2vSZatezpBx3lMPDhtAMQ%3D%3D&amp;use_mirror=deac-ams&amp;r=',
 'verbose': 3,
 'version': '4.4.0'}
Receipt written to /Users/paul/Library/AutoPkg/Cache/com.github.bnpl.autopkg.munki.squirrelsql/receipts/SQuirreLSQL.munki-receipt-20220421-142944.plist

The following packages were built:
    Identifier              Version  Pkg Path                                                                                           
    ----------              -------  --------                                                                                           
    org.squirrelsql.client  4.4.0    /Users/paul/Library/AutoPkg/Cache/com.github.bnpl.autopkg.munki.squirrelsql/SQuirreLSQL-4.4.0.pkg  

The following new items were imported into Munki:
    Name         Version  Catalogs  Pkginfo Path                  Pkg Repo Path               Icon Repo Path  
    ----         -------  --------  ------------                  -------------               --------------  
    SQuirreLSQL  4.4.0    testing   apps/SQuirreLSQL-4.4.0.plist  apps/SQuirreLSQL-4.4.0.pkg
paul-cossey commented 2 years ago

Happy to switch out the No's for Yes' if you'd rather all options are installed :-)