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] 7034N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 500N/A# incorporator - an utility to incorporate packages in a repo 3468N/A # strip the :timestamp from the version string 3468N/A # strip the ,{build-release} from the version string 3468N/A# This should probably use the pkg APIs at some point, but this appears to be 3468N/A# a stable and less complicated interface to gathering information from the 3468N/A# manifests in the package repo. 7034N/A # if a static file was provided, prime the cache with the contents of 7034N/A # find the incorporation and add the package 7034N/A # Load the repository for packages to incorporate. 3468N/A # Check for multiple versions of packages in the repo, but keep track of 7034N/A # Add published packages to the incorporation lists 3468N/A # skip older packages and those that don't want to be incorporated 3468N/A # a dict inside a list inside a dict 3468N/A # if we haven't started to build this incorporation, create one. 3468N/A # find the incorporation and add the package 3468N/A ["repository=", "publisher=", "version=", 7034N/A "consolidation=", "destdir=", "Werror",