Remove package download no idle sleep assertion.

This commit is contained in:
Justin McWilliams
2016-04-25 13:16:55 -04:00
parent 396f05bf50
commit 30cea5ac1f
-4
View File
@@ -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=''):