mirror of
https://github.com/munki/munki.git
synced 2026-04-23 13:29:26 -05:00
Misc cleanups
git-svn-id: http://munki.googlecode.com/svn/trunk@732 a4e17f2e-e282-11dd-95e1-755cbddbdd66
This commit is contained in:
@@ -90,7 +90,8 @@ def createDirsIfNeeded(dirlist):
|
||||
Args:
|
||||
dirlist: a sequence of directories.
|
||||
Returns:
|
||||
Boolean. True if all directories existed or were created, False otherwise.
|
||||
Boolean. True if all directories existed or were created,
|
||||
False otherwise.
|
||||
"""
|
||||
for directory in dirlist:
|
||||
if not os.path.exists(directory):
|
||||
@@ -274,12 +275,12 @@ def notifyUserOfUpdates():
|
||||
def runPreOrPostFlightScript(script, runtype='custom'):
|
||||
"""Run a pre- or postflight script and return its exit status.
|
||||
|
||||
Run a pre- or postflight script and return its exit status.
|
||||
|
||||
Args:
|
||||
script: string path to the pre/postflight script to execute.
|
||||
runtype: string mode managedsoftwareupdate was executed with. For more see
|
||||
runtype: string mode managedsoftwareupdate was executed with.
|
||||
For more info see
|
||||
http://code.google.com/p/munki/wiki/PreflightAndPostflightScripts
|
||||
|
||||
Returns:
|
||||
Integer exit status from preflight or postflight script.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user