Closed GoogleCodeExporter closed 8 years ago
This is part of a set of user interaction issues that come up when trying to
emulate App Store-like behavior on top of the way Munki really operates
behind-the-scenes.
In this case we need to differentiate between self-service items chosen for
install or removal that have been processed by managedsoftwareupdate, and those
that have not yet (and have only been modified in the GUI).
What would need to happen is this: user cancels the item (which has been
processed by managedsoftwareupdate; that's why there are additional updates).
MSC.app sees this and kicks off an update check session. This then has the
jarring effect of replacing the list of pending and additional updates with the
update status display. Once the update check is complete, the list of pending
and available updates is updated. This could take a few seconds, or many
minutes, especially if the admin has recently added a new managed_install or
update that must be downloaded.
So I try not to kick off update check sessions until they are absolutely
necessary; in this case, it does appear it's necessary.
Original comment by gregnea...@mac.com
on 27 Mar 2014 at 3:21
"If Update is clicked, both items are still installed."
Can you confirm this behavior? I have an optional item that requires another
item. If I select the first item, after the update check, it shows both items.
If I cancel the first item from the Pending Updates, then click "Update", a
check is run first, and when it proceeds to install, neither item is installed.
Original comment by gregnea...@mac.com
on 27 Mar 2014 at 5:09
Having tried some more to reproduce what I originally described, I now see it's
a narrower case than I thought. As you said, once "Update" is pressed and it
does its check, neither item is installed, and for me this seems to go for
items with either or both of 'requires' and 'update_for'.
I _can_ still reproduce it if I cancel the original item, and then close MSC.
Upon re-opening, the update_for or required item is still in the list, only
this time pressing Update starts installing all the items. I think in my
original testing I was always closing/re-opening as an additional check, but it
seems this is the actual issue. Hope that's clearer.
Original comment by t...@synthist.net
on 27 Mar 2014 at 6:55
This commit: https://code.google.com/p/munki/source/detail?r=41b5661d63dd
should address this issue, though possibly in a too-heavy-weight way.
Original comment by gregnea...@mac.com
on 1 Apr 2014 at 11:42
That does it. Thanks!
Original comment by t...@synthist.net
on 3 Apr 2014 at 5:38
Original issue reported on code.google.com by
t...@synthist.net
on 27 Mar 2014 at 2:33