Lines Matching refs:pkg

91 def pkg_base_name(pkg):  argument
92 match = PKG_VERSION_MATCHER.match(pkg)
96 return (pkg, "")
113 def get_max_version(pkg): argument
115 url = "https://crates.io/api/v1/crates/" + pkg
138 def fetch_pkg(args, pkg, dl_path): argument
141 print("ERROR: cannot find download path for '{}'".format(pkg))
176 def get_crate_dependencies(args, pkg): argument
178 echo(args, "Ask crates.io for {} ...".format(pkg))
181 pkg, get_max_version(pkg))
185 print("ERROR: failed to find {}".format(pkg))
293 for (pkg, build_deps, dev_deps) in found_pkgs:
294 all_pkgs.add(pkg)
299 k, pkg, len(build_deps), len(dev_deps), len(all_build_deps),
318 for pkg in sorted(pkgs):
319 ok, build_deps, dev_deps = get_crate_dependencies(args, pkg)
323 found_pkgs.append((pkg, build_deps, dev_deps))
327 def add_non_dev_dependencies(args, all_deps, core_pkgs, visited, pkg): argument
329 if pkg not in all_deps:
330 ok, build_deps, dev_deps = get_crate_dependencies(args, pkg)
333 all_deps[pkg] = (pkg, build_deps, dev_deps)
335 (_, build_deps, dev_deps) = all_deps[pkg]
336 if pkg in visited:
338 visited.add(pkg)
341 if p not in core_pkgs and pkg in core_pkgs:
345 if pkg in core_pkgs:
349 all_deps[pkg] = (pkg, build_deps, dev_deps)
360 for pkg in sorted(core_pkgs):
361 add_non_dev_dependencies(args, all_deps, core_pkgs, visited, pkg)
370 for pkg in sorted(core_pkgs):
371 (_, build_deps, dev_deps) = all_deps[pkg]
373 add_non_dev_dependencies(args, all_deps, core_pkgs, visited, pkg)
374 (_, build_deps, dev_deps) = all_deps[pkg]
391 for pkg in sorted(pkgs):
392 (_, build_deps, dev_deps) = all_deps[pkg]
395 echo(args, pattern.format(pkg, len(deps), set2list(deps)))
433 for pkg in args.pkgs:
434 echo(args, "trying to fetch package '{}'".format(pkg))
436 if not fetch_pkg(args, pkg, find_dl_path(args, pkg)):
439 print("ERROR: unknown package '{}'".format(pkg))