hardlink.py revision 1507
49N/A# The contents of this file are subject to the terms of the 49N/A# Common Development and Distribution License (the "License"). 49N/A# You may not use this file except in compliance with the License. 49N/A# See the License for the specific language governing permissions 49N/A# and limitations under the License. 49N/A# When distributing Covered Code, include this CDDL HEADER in each 49N/A# If applicable, add the following below this CDDL HEADER, with the 49N/A# fields enclosed by brackets "[]" replaced with your own identifying 49N/A# information: Portions Copyright [yyyy] [name of copyright owner] 941N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 49N/A# Use is subject to license terms. 49N/A"""module describing a (hard) link packaging object 49N/AThis module contains the HardLinkAction class, which represents a hardlink-type 49N/Apackaging object.""" 49N/A """Class representing a hardlink-type packaging object.""" 237N/A """ return a path for target that is relative to image""" 462N/A # paths are either relative to path or absolute; 462N/A # both need to be passed through os.path.normpath to ensure 462N/A # that all ".." are removed to constrain target to image 96N/A """Client-side method that installs a hard link.""" 1281N/A # We only allow hard links to regular files, so the hard 1281N/A # link should lstat() as a regular file. 1281N/A # No point in continuing if no target