repoutil --info foo now displays RestartNeeded info

50 views
Skip to first unread message

Gregory Neagle

unread,
Apr 15, 2013, 2:51:33 PM4/15/13
to repo...@googlegroups.com, munk...@googlegroups.com
(Cross-posted to munki-dev because this may be of interest to Munki admins using munkitools 0.8.4.x)

I've just pushed a reposado change to GitHub.

As a help and hint, repoutil can now tell you if a restart _might_ be needed by a given product:

% ./repoutil --info 022-3271
Product: 022-3271
Title: Final Cut Pro Update
Version: 5.1.4
Size: 40.1 MB
Post Date: 2007-02-22 23:36:54
RestartNeeded: No
AppleCatalogs:
http://swscan.apple.com/content/catalogs/index.sucatalog
http://swscan.apple.com/content/catalogs/index-1.sucatalog
http://swscan.apple.com/content/catalogs/others/index-leopard.merged-1.sucatalog
http://swscan.apple.com/content/catalogs/others/index-leopard-snowleopard.merged-1.sucatalog
http://swscan.apple.com/content/catalogs/others/index-lion-snowleopard-leopard.merged-1.sucatalog

and:

% ./repoutil --info zzz041-9755
Product: zzz041-9755
Title: Security Update 2013-001
Version: 1.0
Size: 80.1 MB
Post Date: 2013-03-14 20:08:42
RestartNeeded: Yes
AppleCatalogs:
http://swscan.apple.com/content/catalogs/others/index-lion-snowleopard-leopard.merged-1.sucatalog
http://swscan.apple.com/content/catalogs/others/index-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog

Some updates will return "Sometimes":

# ./repoutil --info 041-8709
Product: 041-8709
Title: Safari
Version: 6.0.3
Size: 46.3 MB
Post Date: 2013-03-14 20:09:50
RestartNeeded: Sometimes
AppleCatalogs:
http://swscan.apple.com/content/catalogs/others/index-leopard-snowleopard.merged-1.sucatalog
http://swscan.apple.com/content/catalogs/others/index-lion-snowleopard-leopard.merged-1.sucatalog
https://swscan.apple.com/content/catalogs/others/index-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog

This is because the update contains multiple pkg_refs and not all of them require a restart. Whether a restart will actually be required depends on conditions on the individual client. You can read through the update's dist file to attempt to understand which conditions might lead to which result.

-Greg

sebi zar

unread,
Apr 16, 2013, 11:01:30 AM4/16/13
to repo...@googlegroups.com, munk...@googlegroups.com
great ;-)
Reply all
Reply to author
Forward
0 new messages