equal
deleted
inserted
replaced
19 # |
19 # |
20 # CDDL HEADER END |
20 # CDDL HEADER END |
21 # |
21 # |
22 |
22 |
23 # |
23 # |
24 # Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. |
24 # Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved. |
25 # |
25 # |
26 |
26 |
27 """module describing a (hard) link packaging object |
27 """module describing a (hard) link packaging object |
28 |
28 |
29 This module contains the HardLinkAction class, which represents a hardlink-type |
29 This module contains the HardLinkAction class, which represents a hardlink-type |
44 |
44 |
45 __slots__ = [] |
45 __slots__ = [] |
46 |
46 |
47 name = "hardlink" |
47 name = "hardlink" |
48 |
48 |
49 def __init__(self, data=None, **attrs): |
49 # Tells parent class that leading slash should not be stripped |
50 link.LinkAction.__init__(self, data, **attrs) |
50 # from "path" attribute. |
|
51 _strip_path = False |
51 |
52 |
52 def get_target_path(self): |
53 def get_target_path(self): |
53 """ return a path for target that is relative to image""" |
54 """ return a path for target that is relative to image""" |
54 |
55 |
55 target = self.attrs["target"] |
56 target = self.attrs["target"] |