SolarisPackageDirBundle.py revision 3158
39N/A# The contents of this file are subject to the terms of the 39N/A# Common Development and Distribution License (the "License"). 39N/A# You may not use this file except in compliance with the License. 39N/A# See the License for the specific language governing permissions 39N/A# and limitations under the License. 39N/A# When distributing Covered Code, include this CDDL HEADER in each 39N/A# If applicable, add the following below this CDDL HEADER, with the 39N/A# fields enclosed by brackets "[]" replaced with your own identifying 39N/A# information: Portions Copyright [yyyy] [name of copyright owner] 926N/A# Copyright (c) 2007, 2015, Oracle and/or its affiliates. All rights reserved. 205N/A # map the path name to the SVR4 class it belongs to and 39N/A # scripts this package uses. 39N/A # A list of pkg.action.AttributeActions with pkginfo 39N/A # attributes for items that don't map to pkg(5) equivalents 39N/A # Want to access the manifest as a dict. 1431N/A # We accept either bz2 or 7zip'd files 429N/A # Remove BASEDIR from a relocatable path. The extra work is 315N/A # because if BASEDIR is not empty (non-"/"), then we probably 1352N/A # need to strip an extra slash from the beginning of the path, 429N/A # but if BASEDIR is "" ("/" in the pkginfo file), then we don't 1352N/A # need to do anything extra. 72N/A # Just do the files that remain. Only regular file 59N/A # types end up compressed; so skip them and only them. 1045N/A # Files with special characters in their names may not 1045N/A # end up in the faspac archive, so we still need to emit 1045N/A # These are the only valid file types in SysV packages 72N/A # This relies on the fact that 59N/A # license actions have their 72N/A # hash set to the package path. 72N/A "renameold":
"renameold",
72N/A "renamenew":
"renamenew",
72N/A "preserve":
"true",
59N/A "svmpreserve":
"true" 72N/A # If any one of the mode, owner, or group is "?", then we're 72N/A # clearly not capable of delivering the object correctly, so 838N/A # Add a preserve attribute if klass is known to be used 838N/A # for preservation. For editable and volatile files, 926N/A # always do at least basic preservation. 845N/A # check to see if we've seen this script 181N/A """Creates a list of pkg.action.AttributeActions corresponding 46N/A to pkginfo fields that aren't directly mapped to pkg(5) 46N/A # these keys get converted to a legacy action 838N/A # parameters defined in pkginfo(4) that we always ignore. 926N/A # by default, we also ignore SUNW_* 615N/A # XXX pkg.sysvpkg adds this, ignoring for now.