Hi,
Apologies if this is answered elsewhere, or if I am posting this in the wrong forum. Please set me straight in either case.
First off, this is the only occasion, out of many dozens of autopkg recipes over more than a year, when I've ever had a problem that I couldn't resolve on my own with a few minutes' research. This tool has been a Godsend to us in a K12 environment with ~1000 Macs. Words cannot express our gratitude to the developers and all the recipe-writers out there.
My munki repo/autopkg server is running OS X Server 10.6.8.
Autopkg is version 0.5.2.
Python version is 2.6.1
I have run repo-update to get the freshest recipes.
Whenever I try to run AdobeShockwavePlayer.munki, I get the following error:
bullwinkle:Cache admin$ autopkg run AdobeShockwavePlayer.munki
Processing AdobeShockwavePlayer.munki...
Could not retrieve Version from /Users/admin/Library/AutoPkg/Cache/local.munki.AdobeShockwavePlayer/AdobeShockwavePlayer/Distribution
Failed.
The following recipes failed:
AdobeShockwavePlayer.munki
Error in local.munki.AdobeShockwavePlayer: Processor: AdobeShockwaveVersioner: Error: Could not retrieve Version from /Users/admin/Library/AutoPkg/Cache/local.munki.AdobeShockwavePlayer/AdobeShockwavePlayer/Distribution
The following new items were downloaded:
Download Path
-------------
/Users/admin/Library/AutoPkg/Cache/local.munki.AdobeShockwavePlayer/downloads/AdobeShockwavePlayer.dmg
--------------------------
Here is the parent recipe:
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>Description</key>
<string>Downloads the latest Adobe Shockwave Player disk image and imports into Munki.</string>
<key>Identifier</key>
<string>com.github.jleggat.AdobeShockwavePlayer.munki</string>
<key>Input</key>
<dict>
<key>NAME</key>
<string>AdobeShockwavePlayer</string>
<key>MUNKI_REPO_SUBDIR</key>
<string>apps/adobe</string>
</dict>
<key>MinimumVersion</key>
<string>0.2.0</string>
<key>ParentRecipe</key>
<string>com.github.jleggat.download.AdobeShockwavePlayer</string>
<key>Process</key>
<array>
<dict>
<key>Arguments</key>
<dict>
<key>flat_pkg_path</key>
<string>%pathname%/*.pkg</string>
<key>destination_path</key>
<string>%RECIPE_CACHE_DIR%/%NAME%</string>
<key>purge_destination</key>
<true/>
</dict>
<key>Processor</key>
<string>FlatPkgUnpacker</string>
</dict>
<dict>
<key>Processor</key>
<string>AdobeShockwaveVersioner</string>
<key>Arguments</key>
<dict>
<key>input_file_path</key>
<string>%RECIPE_CACHE_DIR%/%NAME%/Distribution</string>
</dict>
</dict>
<dict>
<key>Processor</key>
<string>PkgPayloadUnpacker</string>
<key>Arguments</key>
<dict>
<key>pkg_payload_path</key>
<string>%RECIPE_CACHE_DIR%/%NAME%/Shockwave12.pkg/Payload</string>
<key>destination_path</key>
<string>%RECIPE_CACHE_DIR%/%NAME%/Library</string>
<key>purge_destination</key>
<true/>
</dict>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>faux_root</key>
<string>%RECIPE_CACHE_DIR%/%NAME%</string>
<key>installs_item_paths</key>
<array>
<string>/Library/Internet Plug-Ins/DirectorShockwave.plugin</string>
</array>
</dict>
<key>Processor</key>
<string>MunkiInstallsItemsCreator</string>
</dict>
<dict>
<key>Processor</key>
<string>MunkiPkginfoMerger</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>additional_pkginfo</key>
<dict>
<key>name</key>
<string>%NAME%</string>
<key>version</key>
<string>%version%</string>
<key>catalogs</key>
<array>
<string>testing</string>
</array>
<key>description</key>
<string>Adobe Shockwave Player Plugin for Web Browsers</string>
<key>display_name</key>
<string>Adobe Shockwave Player</string>
<key>name</key>
<string>%NAME%</string>
<key>unattended_install</key>
<true/>
<key>category</key>
<string>Browser Plugin</string>
<key>developer</key>
<string>Adobe</string>
</dict>
</dict>
<key>Processor</key>
<string>MunkiPkginfoMerger</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>pkg_path</key>
<string>%pathname%</string>
<key>repo_subdirectory</key>
<string>%MUNKI_REPO_SUBDIR%</string>
</dict>
<key>Processor</key>
<string>MunkiImporter</string>
</dict>
</array>
</dict>
</plist>
--------------------------
Here's my recipe override:
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>Identifier</key>
<string>local.munki.AdobeShockwavePlayer</string>
<key>Input</key>
<dict>
<key>DOWNLOAD_URL</key>
<key>MUNKI_REPO_SUBDIR</key>
<string>apps/Adobe</string>
<key>NAME</key>
<string>AdobeShockwavePlayer</string>
</dict>
<key>ParentRecipe</key>
<string>com.github.jleggat.AdobeShockwavePlayer.munki</string>
</dict>
</plist>
--------------------------
Here are the contents of /Users/admin/Library/AutoPkg/Cache/local.munki.AdobeShockwavePlayer/AdobeShockwavePlayer/Distribution as of a few minutes ago:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<installer-gui-script minSpecVersion="2">
<title>Adobe Shockwave Player 12.2</title>
<options customize="never" allow-external-scripts="no" rootVolumeOnly="false"/>
<domains enable_anywhere="true" enable_localSystem="true"/>
<volume-check script="pm_volume_check();"/>
<script>
function pm_volume_check()
{
version = my.target.systemVersion.ProductVersion;
if(!(system.compareVersions(version, '10.6') >= 0))
{
my.result.title = 'Failure';
my.result.message = 'Adobe Shockwave not supported on this OS version';
my.result.type = 'Fatal';
return false;
}
if(!(my.target.availableKilobytes >= 48 * 1024 * 1024))
{
my.result.title = 'Failure';
my.result.message = 'There is shortage of free disk space available on this volume';
my.result.type = 'Fatal';
return false;
}
return true;
}
</script>
<background file="background" alignment="bottomleft" scaling="proportional"/>
<readme file="ReadMe"/>
<license file="License"/>
<choices-outline>
<line choice="choice0"/>
</choices-outline>
<choice id="choice0" title="Shockwave" description="Adobe Shockwave Player for Mac OSX 10.x">
<pkg-ref id="com.adobe.adobeShockwavePlayer.shockwave12.pkg"/>
</choice>
<pkg-ref id="com.adobe.adobeShockwavePlayer.shockwave12.pkg" version="12.2.4.194" auth="Root" packageIdentifier="adobe.adobeShockwavePlayer.shockwave12.pkg" installKBytes="44051">#shockwave12.pkg</pkg-ref>
<pkg-ref id="com.adobe.adobeShockwavePlayer.shockwave12.pkg">
<bundle-version>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.mixtiff" path="Application Support/Adobe/Shockwave 12/Xtras/TIFF Import Export.xtra"/>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.speechxtra" path="Application Support/Adobe/Shockwave 12/Xtras/Speech.xtra"/>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.coreaudiomix" path="Application Support/Adobe/Shockwave 12/Xtras/CoreAudioMix.xtra"/>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.dvdasset" path="Application Support/Adobe/Shockwave 12/Xtras/DVD Asset.xtra"/>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.mixsound" path="Application Support/Adobe/Shockwave 12/Xtras/Sound Import Export.xtra"/>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.mixservices" path="Application Support/Adobe/Shockwave 12/Xtras/Mix Services.xtra"/>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.fontasset" path="Application Support/Adobe/Shockwave 12/Xtras/Font Asset PPC.xtra"/>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.shockwave.pluginshim" path="Internet Plug-Ins/DirectorShockwave.plugin"/>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.bootstrap" path="Application Support/Adobe/Shockwave 12/Xtras/Bootstrap PPC Xtra.xtra"/>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.dynamiks_320" path="Application Support/Adobe/Shockwave 12/Xtras/Dynamiks_320.xtra"/>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.qtasset" path="Application Support/Adobe/Shockwave 12/Xtras/QuickTime6 Asset.xtra"/>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.shockwave.bundle" path="Application Support/Adobe/Shockwave 12/DirectorShockwave.bundle"/>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.f4vasset" path="Application Support/Adobe/Shockwave 12/Xtras/F4VAsset.xtra"/>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.mixtarga" path="Application Support/Adobe/Shockwave 12/Xtras/Targa Import Export.xtra"/>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.fontxtra" path="Application Support/Adobe/Shockwave 12/Xtras/Font Xtra PPC.xtra"/>
<bundle CFBundleShortVersionString="11.5.0r593" CFBundleVersion="11.5.0r593" id="com.adobe.director.multiusr" path="Application Support/Adobe/Shockwave 12/Xtras/Multiusr.xtra"/>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.soundcontrol" path="Application Support/Adobe/Shockwave 12/Xtras/Sound Control.xtra"/>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.textxtra" path="Application Support/Adobe/Shockwave 12/Xtras/TextXtra PPC.xtra"/>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.swastrm" path="Application Support/Adobe/Shockwave 12/Xtras/SWA Streaming PPC Xtra.xtra"/>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.swadcmpr" path="Application Support/Adobe/Shockwave 12/Xtras/SWA Decompression PPC Xtra.xtra"/>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.mixmpeg3" path="Application Support/Adobe/Shockwave 12/Xtras/MPEG 3 Import Export.xtra"/>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.mixswa" path="Application Support/Adobe/Shockwave 12/Xtras/SWA Import Export.xtra"/>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.flvasset" path="Application Support/Adobe/Shockwave 12/Xtras/FLVAsset.xtra"/>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.IMLLib.framework" path="Application Support/Adobe/Shockwave 12/DirectorShockwave.bundle/IMLLib.framework"/>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.DPLib.framework" path="Application Support/Adobe/Shockwave 12/DirectorShockwave.bundle/DPLib.framework"/>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.dynamiks" path="Application Support/Adobe/Shockwave 12/Xtras/Dynamiks.xtra"/>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.audiofilters" path="Application Support/Adobe/Shockwave 12/Xtras/AudioFilters.xtra"/>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.ProjLib.framework" path="Application Support/Adobe/Shockwave 12/DirectorShockwave.bundle/ProjLib.framework"/>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.audiomixer" path="Application Support/Adobe/Shockwave 12/Xtras/AudioMixer.xtra"/>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.mixlrg" path="Application Support/Adobe/Shockwave 12/Xtras/LRG Import Export.xtra"/>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.mp4asset" path="Application Support/Adobe/Shockwave 12/Xtras/MP4Asset.xtra"/>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.3dasset" path="Application Support/Adobe/Shockwave 12/Xtras/Shockwave 3D Asset Xtra.xtra"/>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.textasset" path="Application Support/Adobe/Shockwave 12/Xtras/TextAsset PPC.xtra"/>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.SWMenu.framework" path="Application Support/Adobe/Shockwave 12/DirectorShockwave.bundle/SwMenu.framework"/>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.flashasset" path="Application Support/Adobe/Shockwave 12/Xtras/Flash Asset PPC.xtra"/>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.cursorasset" path="Application Support/Adobe/Shockwave 12/Xtras/Cursor Asset.xtra"/>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.shockwave.plugin.framework" path="Application Support/Adobe/Shockwave 12/DirectorShockwave.bundle/Plugin.framework"/>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.mixpng" path="Application Support/Adobe/Shockwave 12/Xtras/PNG Import Export.xtra"/>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.mixau" path="Application Support/Adobe/Shockwave 12/Xtras/Sun AU Import Export.xtra"/>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.realasset" path="Application Support/Adobe/Shockwave 12/Xtras/RealMedia Asset.xtra"/>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.bitmapfilters" path="Application Support/Adobe/Shockwave 12/Xtras/BitmapFilters.xtra"/>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.netfile" path="Application Support/Adobe/Shockwave 12/Xtras/NetFile PPC Xtra.xtra"/>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.ineturl" path="Application Support/Adobe/Shockwave 12/Xtras/InetUrl PPC Xtra.xtra"/>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.agifasset" path="Application Support/Adobe/Shockwave 12/Xtras/Animated GIF Asset.xtra"/>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.xmlparser" path="Application Support/Adobe/Shockwave 12/Xtras/XmlParser PPC Xtra.xtra"/>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.cbrowser" path="Application Support/Adobe/Shockwave 12/Xtras/CBrowser PPC Xtra.xtra"/>
<bundle CFBundleShortVersionString="12.2.4r194" CFBundleVersion="12.2.4r194" id="com.adobe.director.netlingo" path="Application Support/Adobe/Shockwave 12/Xtras/NetLingo PPC Xtra.xtra"/>
</bundle-version>
</pkg-ref>
--------------------------
Does anyone have any ideas about how to fix this?
Thank you very much!
-- MB