#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
#
# The ordering is important -- SolarisPackageDirBundle must come before
# DirectoryBundle, or the latter class will recognize a Solaris package
# as a plain directory.
__all__ = [
"SolarisPackageDirBundle",
"DirectoryBundle",
"SolarisPackageDatastreamBundle",
"TarBundle"
]
import os
import sys
pass
"""Raised when gid or uid lookup fails for a file during bundle
generation."""
msg = []
if uid:
if gid:
"""Base bundle class."""
"""Return the first action that matches the provided path or
None."""
if not apath:
continue
# Construct action on demand.
# Action was returned.
return data
"""Determines what kind of bundle is at the given filename, and returns
the appropriate bundle object.
"""
if __name__ == "__main__":
try:
except TypeError as e:
print(e)
for file in b:
try:
except:
pass