Lines Matching refs:os
13 import os
14 import os.path
21 scripts_path = os.path.dirname(os.path.realpath(__file__))
43 if not os.path.exists(args.pkglistfile):
84 return os.path.join(args.pkgdata_dir, "runtime-reverse", pkgn)
86 return os.path.join(args.pkgdata_dir, "runtime", pkgn)
96 pn = os.path.basename(pkgdata_file)
109 if os.path.exists(revlink):
110 mappedpkg = os.path.basename(os.readlink(revlink))
112 if os.path.exists(fwdfile):
114 if not os.path.exists(fwdfile + ".packaged"):
118 if os.path.exists(revlink):
120 origpkg = os.path.basename(os.readlink(revlink))
123 if os.path.exists(fwdfile):
130 if os.path.exists(fwdfile):
132 if not os.path.exists(fwdfile + ".packaged"):
179 revlink = os.path.join(args.pkgdata_dir, "runtime-reverse", pkg_name)
181 if os.path.exists(revlink):
182 mappedpkg = os.path.basename(os.readlink(revlink))
213 revlink = os.path.join(pkgdata_dir, "runtime-reverse", pkg)
215 if os.path.exists(revlink):
216 mappings[pkg] = os.path.basename(os.readlink(revlink))
220 pkgfile = os.path.join(pkgdata_dir, 'runtime', pkg)
221 if os.path.exists(pkgfile):
271 providepkgpath = os.path.join(args.pkgdata_dir, "runtime-rprovides", pkg)
272 if os.path.exists(providepkgpath):
273 for f in os.listdir(providepkgpath):
276 pkgdatafile = os.path.join(args.pkgdata_dir, "runtime", f)
279 pkgdatafile = os.path.join(args.pkgdata_dir, 'runtime-reverse', pkg)
280 if os.path.exists(pkgdatafile):
337 providepkgpath = os.path.join(args.pkgdata_dir, "runtime-rprovides", pkg)
338 if os.path.exists(providepkgpath):
339 for f in os.listdir(providepkgpath):
342 pkgdatafile = os.path.join(args.pkgdata_dir, "runtime", f)
345 pkgdatafile = os.path.join(args.pkgdata_dir, "runtime-reverse", pkg)
346 if not os.path.exists(pkgdatafile):
352 recipedatafile = os.path.join(pkgdata_dir, recipe)
353 if not os.path.exists(recipedatafile):
367 if os.path.exists(os.path.join(pkgdata_dir, 'runtime', '%s.packaged' % pkg)):
387 revlink = os.path.join(args.pkgdata_dir, "runtime-reverse", pkg)
388 if os.path.exists(revlink):
391 mappedpkg = os.path.basename(os.readlink(revlink))
392 … if not os.path.exists(os.path.join(args.pkgdata_dir, 'runtime', '%s.packaged' % mappedpkg)):
397 … if not os.path.exists(os.path.join(args.pkgdata_dir, 'runtime', '%s.packaged' % pkg)):
417 for root, dirs, files in os.walk(os.path.join(args.pkgdata_dir, searchdir)):
479 pkgdatafile = os.path.join(args.pkgdata_dir, "runtime-reverse", pkg)
480 if not os.path.exists(pkgdatafile):
489 providepkgpath = os.path.join(args.pkgdata_dir, "runtime-rprovides", pkg)
490 if os.path.exists(providepkgpath):
491 for f in os.listdir(providepkgpath):
494 pkgdatafile = os.path.join(args.pkgdata_dir, "runtime", f)
497 pkgdatafile = os.path.join(args.pkgdata_dir, "runtime", pkg)
498 if not os.path.exists(pkgdatafile):
507 for root, dirs, files in os.walk(os.path.join(args.pkgdata_dir, 'runtime')):
509 with open(os.path.join(root,fn)) as f:
610 if not os.environ.get('BUILDDIR', ''):
623 if not os.path.exists(args.pkgdata_dir):