debian-forge-composer/internal/weldr
Ondřej Budai 0796342fa1 weldr/api: get the package list for depsolving in a better way
blueprint.GetPackages() method was used to depsolve blueprints prior the
dnf-to-rpm switch. However, it got dropped during the switch. This commit
makes weldr use it again.

The nice effect of this change is that we can drop getPkgNameGlob function and
have only one function for getting package name-versions from a blueprint.

Also, blueprint.GetPackages() works better with * version. Previously, we had
issues with composer depsolving bash of version * to both x86_64 and i686
versions of bash package. GetPackages() converts the package to name-version
of just bash, which dnf-json correctly depsolves to just one architecture. On
the contrary, the previous method converted bash to name-version bash-*.*.*,
which confused dnf-json.

Note that conversion to bash-* is also wrong because this will cause dnf-json
to install all packages with prefix "bash-*".
2020-06-10 17:40:30 +02:00
..
api.go weldr/api: get the package list for depsolving in a better way 2020-06-10 17:40:30 +02:00
api_test.go weldr: add support for toml format in /blueprints/freeze 2020-06-05 13:51:04 +02:00
compose.go weldr: use compose status for targets as well 2020-06-03 11:49:20 +02:00
json.go weldr: Update projects/source/info to support API v1 2020-06-03 21:24:47 +02:00
upload.go weldr: use compose status for targets as well 2020-06-03 11:49:20 +02:00
util.go composer/job-queue: add scaffolding for the job queue API 2019-09-26 19:53:06 +02:00