Lines Matching refs:pkg
59 pkg = fields[0]
64 if skipregex.search(pkg):
65 logger.debug("%s -> !!" % pkg)
66 skippedpkgs.add(pkg)
74 if fnmatch.fnmatchcase(pkg, g):
78 skippedpkgs.add(pkg)
79 logger.debug("%s -> !" % pkg)
107 newpkg = g.replace("*", pkg)
117 revlink = revpkgdata(pkg)
136 logger.debug("%s is not a valid package!" % (pkg))
140 logger.debug("%s (%s) -> %s" % (pkg, g, mappedpkg))
143 logger.debug("%s (%s) -> ?" % (pkg, g))
159 for pkgitem in args.pkg:
212 for pkg in pkgs:
213 revlink = os.path.join(pkgdata_dir, "runtime-reverse", pkg)
216 mappings[pkg] = os.path.basename(os.readlink(revlink))
219 for pkg in pkgs:
220 pkgfile = os.path.join(pkgdata_dir, 'runtime', pkg)
225 if fields[0] == 'PKG:%s' % pkg:
226 mappings[pkg].append(fields[1])
233 for pkgitem in args.pkg:
247 for pkg in pkgs:
248 items.extend(mappings.get(pkg, []))
267 for pkgitem in args.pkg:
270 for pkg in pkgs:
271 providepkgpath = os.path.join(args.pkgdata_dir, "runtime-rprovides", pkg)
274 if f != pkg:
275 print("%s is in the RPROVIDES of %s:" % (pkg, f))
279 pkgdatafile = os.path.join(args.pkgdata_dir, 'runtime-reverse', pkg)
284 print("The following packages could not be found: %s" % pkg)
286 logger.error("The following packages could not be found: %s" % pkg)
319 print("%s %s %s %s %s%s" % (pkg, pkg_version, recipe, recipe_version, pkg_size, extra))
330 for pkgitem in args.pkg:
336 for pkg in packages:
337 providepkgpath = os.path.join(args.pkgdata_dir, "runtime-rprovides", pkg)
340 if f != pkg:
341 print("%s is in the RPROVIDES of %s:" % (pkg, f))
345 pkgdatafile = os.path.join(args.pkgdata_dir, "runtime-reverse", pkg)
347 logger.error("Unable to find any built runtime package named %s" % pkg)
366 for pkg in packages:
367 if os.path.exists(os.path.join(pkgdata_dir, 'runtime', '%s.packaged' % pkg)):
368 pkglist.append(pkg)
376 def matchpkg(pkg): argument
380 if fnmatch.fnmatchcase(pkg, pkgspec):
387 revlink = os.path.join(args.pkgdata_dir, "runtime-reverse", pkg)
397 … if not os.path.exists(os.path.join(args.pkgdata_dir, 'runtime', '%s.packaged' % pkg)):
423 for pkg in sorted(pkglist):
424 if matchpkg(pkg):
426 print("%s" % pkg)
459 if args.pkg:
471 if not args.pkg:
474 pkglist = args.pkg
476 for pkg in sorted(pkglist):
477 print("%s:" % pkg)
479 pkgdatafile = os.path.join(args.pkgdata_dir, "runtime-reverse", pkg)
484 logger.error("Unable to find any built runtime package named %s" % pkg)
489 providepkgpath = os.path.join(args.pkgdata_dir, "runtime-rprovides", pkg)
492 if f != pkg:
493 print("%s is in the RPROVIDES of %s:" % (pkg, f))
497 pkgdatafile = os.path.join(args.pkgdata_dir, "runtime", pkg)
499 logger.error("Unable to find any built recipe-space package named %s" % pkg)