Lines Matching refs:package
33 def ebuild_template(package: str):
57 def ebuild_file_path(package: str, version: str):
81 for (package, version) in all_ebuild_versions():
82 if package in versions:
83 versions[package].append(version)
84 versions[package].sort(key=StrictVersion)
86 versions[package] = [version]
90 def update_manifest(package: str, version: str):
92 cmd = ["ebuild", ebuild_file_path(package, version), "manifest"]
97 def uprev_ebuild(package: str, new_version: str, old_version: str):
99 old_path = ebuild_file_path(package, old_version)
100 new_path = ebuild_file_path(package, new_version)
103 update_manifest(package, new_version)
106 def add_ebuild(package: str, version: str):
108 ebuild_path = ebuild_file_path(package, version)
110 open(ebuild_path, "w").write(ebuild_template(package))
111 update_manifest(package, version)
114 def update_cargo(package: str, latest_version: str):
116 cmd = ["cargo", "update", "-p", package, "--precise", latest_version]
128 for (package, cargo_version) in parse_cargo_lock():
129 ebuild_versions = ebuild_packages.get(package, [])
130 if package in IGNORED_PACKAGES:
137 add_ebuild(package, cargo_version)
144 update_cargo(package, ebuild_versions[-1])
151 uprev_ebuild(package, cargo_version, ebuild_versions[-1])