cmd_build(): actually override packages{} with selection when not building all

Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
This commit is contained in:
InsanePrawn 2021-08-05 19:26:49 +02:00
parent 838124b856
commit 4d21bb8234

View file

@ -369,7 +369,8 @@ def cmd_build(verbose, path):
for package in packages.values(): for package in packages.values():
if package.path == path: if package.path == path:
# TODO: currently matches through package.name only, no provides # TODO: currently matches through package.name only, no provides
selection += [ packages[pkg] for pkg in package.local_depends] + [package] selection += [ packages[pkg] for pkg in package.local_depends ] + [package]
packages = { package.name:package for package in selection }
package_order = generate_package_order(list(packages.values())) package_order = generate_package_order(list(packages.values()))
need_build = [] need_build = []