Skip to content

Commit

Permalink
Updated Packaging Meta Data Unit docs
Browse files Browse the repository at this point in the history
  • Loading branch information
fernando79513 committed Jan 2, 2024
1 parent c1b0d8f commit f449c3c
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions docs/reference/units/packaging-meta-data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ Following fields may be used by a manifest entry unit.
file ``/etc/os-release``. If this field is not present then the rule
applies to all versions of a given operating system.

It is also possible to specify a version comparison operator, such as
``>=`` or ``<=``. This is useful when a rule applies to a range of versions.
For example, ``os-version-id: >= 20.04`` will match all versions of Ubuntu
greater than or equal to 20.04.

The remaining fields are custom and depend on the packaging driver. The values
for **Debian** are:

Expand Down Expand Up @@ -85,8 +90,8 @@ derivatives, like Ubuntu.
Each matching packaging meta-data unit is then passed to the driver to generate
packaging meta-data.

Example
-------
Examples
--------

This is an example packaging meta-data unit, as taken from the resource provider::

Expand All @@ -107,6 +112,15 @@ version of ``python3-checkbox-support`` and ``python3`` in both *Debian*,
recommend some utilities that are used by some of the jobs contained in this
provider.

If we want a version of the package to be available in Ubuntu 20.04 or newer,
we can use the following packaging meta-data unit::

unit: packaging meta-data
os-id: ubuntu
os-version-id: >= 20.04
Depends: libsvm3


Using Packaging Meta-Data in Debian
-----------------------------------

Expand Down

0 comments on commit f449c3c

Please sign in to comment.