Age | Commit message (Collapse) | Author |
|
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Diesel is an exception here, because the generated src/schema.rs file
does not automatically contain the necessary imports.
All imports were added where necessary.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Because we want to be able to work on different distros, we cannot have
a concept of "system dependencies", because each distro names their
packages differently.
The concept of installing stuff from a distro image can still be
accomplished easily via environment variables.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
This fixes an issue with the build_package_filter_by_dependency_name()
function, which generated a filters::filter::Filter<Package>.
Though, these filters can fail because the dependency string it filters
for must be parsed to be matched against.
Because the `Package` type does not store the parsed information, but
the "raw" string from the TOML, this parsing process is necessary.
This patch changes the function to return a failable filter (a filter
that returns `Result<bool>`).
These results must be handled in the main() function (actually in the
subcommand implementation), which is done in this patch as well.
Tests were adapted accordingly, which required adding a proper version
constraint string in the test Package instances.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
This patch removes the idea of "version constraints" except for the
equality constraint. This is due to the fact, that everything else
might result in impurities.
This might be reverted in the future and actual operators ("<" or ">" or
ranges...) might be implemented. Thus, we keep the "=" equality sign as
prefix for a version string, to be extensible here.
This commit also fixes (automatically, because the implementation
changed from the ground up) the issue that there was no difference
between a version string and a version constraint string.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
|
|
This removes the "version constraint" CLI option for the what-depends
subcommand, because we're filtering by dependency here, not by package.
Also, this renames the filter builder helper function accordingly.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
This moves the package filtering code to a module, to make it
independent of the CLI code.
This gives us the ability to test this code, which is also implemented
in this commit.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|