Merge pull request #532 from munki/samuel-munkiimport

Don't offer to create icons for profiles or Apple metadata
This commit is contained in:
Greg Neagle
2015-10-23 10:05:47 -07:00

View File

@@ -1026,7 +1026,8 @@ def main():
options.subdirectory = promptForSubdirectory(
options.subdirectory)
if not iconExistsInRepo(pkginfo) and not options.icon_path:
if (not iconExistsInRepo(pkginfo) and not options.icon_path and not
APPLEMETADATA and not pkginfo.get('installer_type') == 'profile'):
print 'No existing product icon found.'
answer = raw_input('Attempt to create a product icon? [y/n] ')
if answer.lower().startswith('y'):