From 45ec79557a0b18a0b0e2d98725ea8abf3cd5c3a2 Mon Sep 17 00:00:00 2001 From: Brian Warsing Date: Sat, 14 Mar 2015 09:54:47 -0700 Subject: [PATCH] update warning to include PayloadIdentifier msg In the unlikely event a profile with a missing PayloadIdentifier is successfully parsed, produce a warning. --- code/client/makepkginfo | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/code/client/makepkginfo b/code/client/makepkginfo index c2f99c5c..ca30635d 100755 --- a/code/client/makepkginfo +++ b/code/client/makepkginfo @@ -1126,10 +1126,11 @@ def main(): item = catinfo['name'] print >> sys.stderr, ( "WARNING: %s contains no discernible install criteria!\n" - "If you do not supply a receipt, install item or \n" - "installcheck_script, munki will have no way to determine \n" - "the package's installation state. This can result in \n" - "undesirable or unexpected behaviour (ie. looping).\n") % item + "If you do not supply a receipt, install item, " + "installcheck_script \n" + "or PayloadIdentifier, munki will have no way to determine the \n" + "package's installation state. This can result in undesirable or \n" + "unexpected behaviour (ie. looping).\n") % item # and now, what we've all been waiting for... print FoundationPlist.writePlistToString(catinfo)