Open henningkessler opened 10 years ago
On Oct 9, 2014, at 11:05 AM, henningkessler notifications@github.com wrote:
And if I do subsequent runs it creates multiple packages and multiple packageinfos of the same version:
The following new items were imported: Name Version Catalogs Pkginfo Path
FontExplorer X Pro 4.2.1 testing apps/FontExplorer X Pro-4.2.1.plist
The following new items were imported: Name Version Catalogs Pkginfo Path
FontExplorer X Pro 4.2.1 testing apps/FontExplorer X Pro-4.2.1__1.plist
Is this the expected behavior or am I doing something terribly wrong?
That, at least, is expected behavior if you don't run makecatalogs between autopkg imports. If the items are not in the catalogs, the MunkiImporter processor won't know they are the repo.
Oh sorry, I should have considered a bit longer before posting this part. Thank you for clarifying this.
On Oct 9, 2014, at 11:05 AM, henningkessler notifications@github.com wrote:
I will be asked if I accept the license agreement and the run stops there waiting for input: [someone@server:/Volumes/DS4600_RAID/Admin]1050$ autopkg run -vv FontExplorerXPro.munki Processing FontExplorerXPro.munki... URLDownloader {'Input': {'filename': u'FontExplorer X Pro.dmg', 'url': u'http://www.fontexplorerx.com/download/free-trial/Mac'}} URLDownloader: Item at URL is unchanged. URLDownloader: Using existing /Users/someone/Library/AutoPkg/Cache/local.munki.FontExplorerXPro/downloads/FontExplorer X Pro.dmg {'Output': {'pathname': u'/Users/someone/Library/AutoPkg/Cache/local.munki.FontExplorerXPro/downloads/FontExplorer X Pro.dmg'}} EndOfCheckPhase {'Input': {}} {'Output': {}} AppDmgVersioner {'Input': {'dmg_path': u'/Users/someone/Library/AutoPkg/Cache/local.munki.FontExplorerXPro/downloads/FontExplorer X Pro.dmg'}} Agree Y/N?
After entering "Y" the run proceeds and I am asked a second time As for this, the DmgMounter processor (of which the AppDmgVersioner processor is a subclass) should handle the license agreement for you:
https://github.com/autopkg/autopkg/blob/master/Code/autopkglib/DmgMounter.py#L109-L110
This is the same code used by Munki when mounting a disk image that has an embedded SLA.
Not sure why it's not working for you.
-Greg
Just a further unrelated note about the recipe - In 4.2.1 I see that I can't copy the license file into the bundle. Warnings about bundle modification. I'm using the server to distribute the client license, but I will investigate licensing the client as standalone, and where that license is installed.
My problem seams to be related to the OS version (10.6.8). I just made another test install on a VM with 10.6.8 and had the same effect...
Hi mosen,
if try to run the FontExplorerXPro.munki recipe with following Override:
I will be asked if I accept the license agreement and the run stops there waiting for input:
After entering "Y" the run proceeds and I am asked a second time
And if I do subsequent runs it creates multiple packages and multiple packageinfos of the same version:
Is this the expected behavior or am I doing something terribly wrong?