userland-incorporator revision 5680
905N/A# The contents of this file are subject to the terms of the 905N/A# Common Development and Distribution License (the "License"). 905N/A# You may not use this file except in compliance with the License. 905N/A# See the License for the specific language governing permissions 905N/A# and limitations under the License. 905N/A# When distributing Covered Code, include this CDDL HEADER in each 905N/A# If applicable, add the following below this CDDL HEADER, with the 905N/A# fields enclosed by brackets "[]" replaced with your own identifying 905N/A# information: Portions Copyright [yyyy] [name of copyright owner] 5680N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 905N/A# incorporator - an utility to incorporate packages in a repo 4429N/A # strip the :timestamp from the version string 4429N/A # strip the ,{build-release} from the version string 6302N/A# This should probably use the pkg APIs at some point, but this appears to be 6302N/A# a stable and less complicated interface to gathering information from the 6302N/A# manifests in the package repo. 6305N/A # if a static file was provided, prime the cache with the contents of 6302N/A # find the incorporation and add the package 5680N/A # Load the repository for packages to incorporate. 6303N/A # Check for multiple versions of packages in the repo, but keep track of # Add published packages to the incorporation lists # skip older packages and those that don't want to be incorporated # a dict inside a list inside a dict # if we haven't started to build this incorporation, create one. # find the incorporation and add the package ["repository=", "publisher=", "version=", "consolidation=", "destdir=", "Werror", if opt in ("-S", "--static-content-file"):
elif opt in ("-s", "--repository"):
elif opt in ("-p", "--publisher"):
elif opt in ("-v", "--version"):
elif opt in ("-d", "--destdir"):
elif opt in ("-c", "--consolidation"):
elif opt in ("-w", "--Werror"):