mirror of
https://github.com/munki/munki.git
synced 2026-05-03 02:40:32 -05:00
Remove package download no idle sleep assertion.
This commit is contained in:
@@ -37,7 +37,6 @@ import fetch
|
||||
import keychain
|
||||
import munkicommon
|
||||
import munkistatus
|
||||
import powermgr
|
||||
import profiles
|
||||
import FoundationPlist
|
||||
|
||||
@@ -841,7 +840,6 @@ def download_installeritem(item_pl, installinfo, uninstalling=False):
|
||||
|
||||
dl_message = 'Downloading %s...' % pkgname
|
||||
expected_hash = item_pl.get(item_hash_key, None)
|
||||
no_idle_sleep_assertion_id = powermgr.assertNoIdleSleep()
|
||||
try:
|
||||
return getResourceIfChangedAtomically(pkgurl, destinationpath,
|
||||
resume=True,
|
||||
@@ -850,8 +848,6 @@ def download_installeritem(item_pl, installinfo, uninstalling=False):
|
||||
verify=True)
|
||||
except fetch.MunkiDownloadError:
|
||||
raise
|
||||
finally:
|
||||
powermgr.removeNoIdleSleepAssertion(no_idle_sleep_assertion_id)
|
||||
|
||||
|
||||
def isItemInInstallInfo(manifestitem_pl, thelist, vers=''):
|
||||
|
||||
Reference in New Issue
Block a user