mirror of
https://github.com/munki/munki.git
synced 2026-04-23 04:59:17 -05:00
Add some comments to make clear how the sleep assertion is released.
This commit is contained in:
@@ -1085,6 +1085,10 @@ def run(only_unattended=False):
|
||||
only_unattended: Boolean. If True, only do unattended_(un)install pkgs.
|
||||
"""
|
||||
sleepassertion = assertNoIdleSleep()
|
||||
# we hold onto the launchd job object in order to keep
|
||||
# pmset noidle running. When this object is destroyed the
|
||||
# job is unloaded and removed.
|
||||
|
||||
managedinstallbase = munkicommon.pref('ManagedInstallDir')
|
||||
installdir = os.path.join(managedinstallbase , 'Cache')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user