mirror of
https://github.com/munki/munki.git
synced 2026-04-23 04:59:17 -05:00
Use underscores instead of hyphens for new installer_type
apple-update-metadata changed to apple_update_metadata
This commit is contained in:
@@ -119,7 +119,7 @@ def makecatalogs(repopath):
|
||||
|
||||
#simple sanity checking
|
||||
installer_type = pkginfo.get('installer_type')
|
||||
if not installer_type in ['nopkg', 'apple-update-metadata']:
|
||||
if not installer_type in ['nopkg', 'apple_update_metadata']:
|
||||
if not 'installer_item_location' in pkginfo:
|
||||
errors.append(
|
||||
"WARNING: file %s is missing installer_item_location" %
|
||||
|
||||
@@ -942,7 +942,7 @@ def main():
|
||||
else:
|
||||
catinfo['version'] = "1.0"
|
||||
catinfo['name'] = options.apple_update
|
||||
catinfo['installer_type'] = 'apple-update-metadata'
|
||||
catinfo['installer_type'] = 'apple_update_metadata'
|
||||
|
||||
# and now, what we've all been waiting for...
|
||||
print FoundationPlist.writePlistToString(catinfo)
|
||||
|
||||
Reference in New Issue
Block a user