Lines Matching refs:path
49 """ return a path for target that is relative to image"""
53 # paths are either relative to path or absolute;
54 # both need to be passed through os.path.normpath to ensure
58 path = self.attrs["path"]
59 target = os.path.normpath(
60 os.path.join(os.path.split(path)[0], target))
62 target = os.path.normpath(target)[1:]
70 path = self.get_installed_path(pkgplan.image.get_root())
73 self.fsobj_checkpath(pkgplan, path)
75 if not os.path.exists(os.path.dirname(path)):
76 self.makedirs(os.path.dirname(path),
79 elif os.path.exists(path):
82 fulltarget = os.path.normpath(os.path.sep.join(
86 os.link(fulltarget, path)
95 err_txt = _("Unable to create hard link {path}; "
97 path=path, target=fulltarget)
117 path = self.get_installed_path(img.get_root())
118 target = os.path.normpath(os.path.sep.join(
121 if not os.path.exists(target):
130 if os.stat(path).st_ino != os.stat(target).st_ino: