mirror of
https://github.com/munki/munki.git
synced 2026-04-20 19:50:36 -05:00
Add --category, --developer, and --icon-name options to makepkginfo
This commit is contained in:
@@ -679,6 +679,21 @@ def main():
|
||||
'is \'testing\'. Can be specified multiple times to add the item '
|
||||
'to multiple catalogs.')
|
||||
)
|
||||
additional_options.add_option(
|
||||
'--category',
|
||||
metavar='CATEGORY',
|
||||
help='Category for display in Managed Software Center.'
|
||||
)
|
||||
additional_options.add_option(
|
||||
'--developer',
|
||||
metavar='DEVELOPER',
|
||||
help='Developer name for display in Managed Software Center.'
|
||||
)
|
||||
additional_options.add_option(
|
||||
'--icon', '--iconname', '--icon-name', '--icon_name',
|
||||
metavar='ICONNAME',
|
||||
help='Name of icon file for display in Managed Software Center.'
|
||||
)
|
||||
additional_options.add_option(
|
||||
'--notes',
|
||||
metavar='STRING|PATH',
|
||||
@@ -879,6 +894,12 @@ def main():
|
||||
catinfo['name'] = options.name
|
||||
if options.pkgvers:
|
||||
catinfo['version'] = options.pkgvers
|
||||
if options.category:
|
||||
catinfo['category'] = options.category
|
||||
if options.developer:
|
||||
catinfo['developer'] = options.developer
|
||||
if options.icon:
|
||||
catinfo['icon_name'] = options.icon
|
||||
|
||||
default_minosversion = "10.4.0"
|
||||
maxfileversion = "0.0.0.0.0"
|
||||
|
||||
Reference in New Issue
Block a user