Closed GoogleCodeExporter closed 8 years ago
I do realise that last request may be entirely outside the control of Munki
developers
Original comment by pi...@u-h-p.com
on 14 May 2014 at 4:12
Java's packaging _is_ outside of the control of Munki's developers.
You can explictly use the CFBundleVersion as a comparison key; you need to set
the "version_comparison_key" to "CFBundleVersion":
<dict>
<key>version_comparison_key</key>
<string>CFBundleVersion</string>
<key>CFBundleVersion</key>
<string>1.7.55.13</string>
<key>CFBundleShortVersionString</key>
<string>Java 7 Update 55</string>
<key>path</key>
<string>/Library/Internet Plug-Ins/JavaAppletPlugin.plugin</string>
<key>type</key>
<string>bundle</string>
</dict>
This feature is relatively new, and is intended for just this scenario.
Still earlier, Munki tried to be "smart" and if CFBundleShortVersionString
started with anything other than a digit, it was ignored in favor of
CFBundleVersion. This is almost certainly the behavior you are seeing.
So this is a long way of saying that from your description, Munki appears to be
behaving as expected/designed.
Original comment by gregnea...@mac.com
on 14 May 2014 at 4:38
For future reference/present edification, the code in question is munkicommon's
getVersionString(), currently here:
https://code.google.com/p/munki/source/browse/code/client/munkilib/munkicommon.p
y#1303
Original comment by gregnea...@mac.com
on 14 May 2014 at 4:58
Thanks Greg, I did have a feeling that might be what it was doing.
It does then seem that the key "CFBundleShortVersionString" is not really right
in an installs array by itself, it should be called something like
"MunkiPreferredCFBundleVersion" or something, and/or that the documentation at
https://code.google.com/p/munki/wiki/HowMunkiDecidesWhatNeedsToBeInstalled#Insta
lls could be a little clearer on that.
Loving Munki, BTW, just hoping to improve it
Original comment by pi...@u-h-p.com
on 14 May 2014 at 8:47
Of course there are lots of nasty edge cases whenever vendors do a poor job of
packaging their software. This one one of the reasons I contributed so heavily
to autopkg.
There's an autopkg recipe for OracleJava7 that takes care of all of this.
http://autopkg.github.io/autopkg/
Original comment by gregnea...@mac.com
on 14 May 2014 at 9:03
Original issue reported on code.google.com by
pi...@u-h-p.com
on 14 May 2014 at 4:00Attachments: