mirror of
https://github.com/munki/munki.git
synced 2026-05-02 10:19:32 -05:00
makepkginfo:
add --description and --displayname args to set description and display_name pkginfo plist keys. git-svn-id: http://munki.googlecode.com/svn/trunk@795 a4e17f2e-e282-11dd-95e1-755cbddbdd66
This commit is contained in:
@@ -317,6 +317,14 @@ def main():
|
||||
relative path of the item to be installed.
|
||||
Useful if there is more than one item at the
|
||||
root of the dmg.''')
|
||||
p.add_option('--displayname',
|
||||
help='''Optional flag.
|
||||
|
||||
String display name of the package.''')
|
||||
p.add_option('--description',
|
||||
help='''Optional flag.
|
||||
|
||||
String description of the package.''')
|
||||
p.add_option('--destinationpath', '-d',
|
||||
help='''Optional flag.
|
||||
|
||||
@@ -442,6 +450,11 @@ def main():
|
||||
print >> sys.stderr, "%s is not an installer package!" % item
|
||||
exit(-1)
|
||||
|
||||
if options.description:
|
||||
catinfo['description'] = options.description
|
||||
if options.displayname:
|
||||
catinfo['display_name'] = options.displayname
|
||||
|
||||
catinfo['installer_item_size'] = int(itemsize/1024)
|
||||
catinfo['installer_item_hash'] = itemhash
|
||||
|
||||
|
||||
Reference in New Issue
Block a user