| Crates.io | sp-variant |
| lib.rs | sp-variant |
| version | 3.5.3 |
| created_at | 2021-09-15 09:34:20.746754+00 |
| updated_at | 2025-02-06 13:08:13.486182+00 |
| description | Detect the Linux distribution for the StorPool build system |
| homepage | https://github.com/storpool/sp-variant |
| repository | https://github.com/storpool/sp-variant.git |
| max_upload_size | |
| id | 451723 |
| size | 576,214 |
The sp-variant library is mainly useful within the StorPool internal
build and QA environment, as well as the first step of installations on
end-user systems. It examines several files and tries to determine what
distribution and what version it is running on.
sp_variant detect - identify the current Linux distributionsp_variant show current - show JSON data about the current distributionsp_variant show all - show JSON data about all supported distributionssp_variant show NAME - show JSON data about a specific distributionsp_variant command list - show a list of distribution-specific commandssp_variant command run category.item [arg...] - run
a distribution-specific commandsp_variant repo add - add the Apt or Yum repository definitions for
the StorPool package repositoryThe sp_variant.variant module exports several constants and functions,
among them:
detect_variant() - return an object describing the detected distributionget_variant() - get an object describing the specified distributionget_by_alias() - same, but specify the StorPool builder alias for
the distributionget_all_variants() - get objects describing all supported distributionscommand_run() - run a distribution-specific commandThe sp-variant crate exports several constants and functions, among them:
build_variants() - return information about all supported variantsdetect() - get an object describing the detected distributionget_from() - get an object describing the specified distributionget_by_alias_from() - same, but specify the StorPool builder alias for
the distributionFor more information, as well as for suggestions and problem reports, please contact the StorPool support team.