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