def run_unique_code()

in legacy/autodmg_cache_builder/autodmg_org.py [0:0]


def run_unique_code(args):
  """Run any special code or builds.

  Arguments from the script are passed in.
  Return a list of any packages you want included in the additions.
  """
  pkg_list = []
  # EXAMPLE ORGANIZATION-UNIQUE CODE:
  # Perhaps you want to build a bunch of extra packages to include.
  # You could use the PKG_LIST list above to set up your package building.
  # ********
  # for package in PKG_LIST:
  #   pkg_list.append(
  #     build_pkg(
  #       package['source'],
  #       package['pkg_name'],
  #       package['receipt'],
  #       package.get('target', package['source']),
  #       DESTINATION,
  #       package['comment']
  #     )
  #   )
  # Each package needs to be added to the pkg_list to be returned,
  # so it can be added to the overall additions list.
  # ********
  # EXAMPLE CUSTOM PACKAGE FUNCTIONS
  # You can create your own functions for building packages, and
  # include those too. Append each package to pkg_list:
  # ********
  # registration_pkg = suppress_registration(args.cache)
  # if registration_pkg:
  #   pkg_list.append(registration_pkg)
  # munki_bootstrap_pkg = munki_bootstrap(args.cache)
  # if munki_bootstrap_pkg:
  #   pkg_list.append(munki_bootstrap_pkg)
  # ********
  # EXAMPLE BARE IMAGE:
  # If you want to build your own bare/thin image, using just the OS,
  # use the build_bare_dmg() function:
  # ********
  # build_bare_dmg(args.source, args.cache, args.logpath,
  #                str(args.loglevel), args.dsrepo)
  # ********
  return pkg_list