Lines Matching full:os

22     with open(os.path.join(license_image_dir, 'package.manifest'), "w+") as package_manifest:
36 pkg_info = os.path.join(d.getVar('PKGDATA_DIR'),
38 pkg_name = os.path.basename(os.readlink(pkg_info))
45 rootfs_license_manifest = os.path.join(d.getVar('LICENSE_DIRECTORY'),
95 lic_file = os.path.join(d.getVar('LICENSE_DIRECTORY'),
102 if not os.path.exists(lic_file):
118 rootfs_license_manifest = os.path.join(rootfs_license_dir,
119 os.path.split(license_manifest)[1])
120 if not os.path.exists(rootfs_license_manifest):
125 pkg_rootfs_license_dir = os.path.join(rootfs_license_dir, pkg)
127 pkg_license_dir = os.path.join(d.getVar('LICENSE_DIRECTORY'),
133 licenses = os.listdir(pkg_license_dir)
135 pkg_license = os.path.join(pkg_license_dir, lic)
136 pkg_rootfs_license = os.path.join(pkg_rootfs_license_dir, lic)
155 rootfs_license = os.path.join(rootfs_license_dir, generic_lic_file)
156 if not os.path.exists(rootfs_license):
159 if not os.path.exists(pkg_rootfs_license):
160 os.symlink(os.path.join('..', generic_lic_file), pkg_rootfs_license)
164 os.path.exists(pkg_rootfs_license)):
169 for walkroot, dirs, files in os.walk(rootfs_license_dir):
171 p = os.path.join(walkroot, f)
172 os.lchown(p, 0, 0)
173 if not os.path.islink(p):
174 os.chmod(p, stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP | stat.S_IROTH)
176 p = os.path.join(walkroot, dir)
177 os.lchown(p, 0, 0)
178os.chmod(p, stat.S_IRWXU | stat.S_IRGRP | stat.S_IXGRP | stat.S_IROTH | stat.S_IXOTH)
201 with open(os.path.join(lic_dir, dep, "recipeinfo"), "r") as f:
206 lic_manifest_dir = os.path.join(d.getVar('LICENSE_DIRECTORY'),
209 image_license_manifest = os.path.join(lic_manifest_dir, 'image_license.manifest')
214 lic_manifest_symlink_dir = os.path.join(d.getVar('LICENSE_DIRECTORY'),
217 if os.path.islink(lic_manifest_symlink_dir):
218 os.unlink(lic_manifest_symlink_dir)
222 os.symlink(lic_manifest_dir, lic_manifest_symlink_dir)
245 sstate_manifest_file = os.path.join(sstate_manifest_dir,
247 if os.path.exists(sstate_manifest_file):
264 if ((not (os.path.islink(f) or os.path.isdir(f))) and
265 not os.path.basename(f) in excluded_files):
266 dep_files.append(os.path.basename(f))
281 import os
283 for root, dirs, files in os.walk(d.getVar('ROOTFS_LICENSE_DIR')):
286 if os.path.islink(full_path) and not os.path.exists(full_path):