Vridlo/types/Rpm: Difference between revisions

From ALT Linux Wiki
No edit summary
No edit summary
Line 41: Line 41:


* '''tag_names''' is ''string array '''mandatory read-only'''''
* '''tag_names''' is ''string array '''mandatory read-only'''''
  Array of tag names whicj are bind to the RPM.
  Array of tag names which are bind to the RPM.


* '''descriptions_count''' is ''positive '''mandatory read-only'''''
* '''descriptions_count''' is ''positive '''mandatory read-only'''''

Revision as of 23:09, 13 December 2019

Rpm is write-once structure that represents RPM file containment model. It is described as:

  • slug is string optional read-only
Unique slug of the RPM.
  • name is string mandatory write-once
Unique name of the rpm. Can be renamed with a notification.
  • epoch is natural optional write-once
Epoch number of the rpm build.
  • version is string mandatory write-once
Version of the rpm build. Usually is is represented as a number.
  • release is string mandatory write-once
Release of the rpm build. Usually is is represented as a number.
  • arch is string mandatory write-once
Architecture slug name of the rpm build. Must be presented in the system. It represents slug link to Arch structure.
  • built_at is string mandatory write-once
Rpm is built at time.
  • builder_slug is string mandatory write-once
Slug name of the RPM builder, represents User structure.
  • group_slug is string mandatory write-once
Represents a slug string of the group identifier, which the rpm belongs to.
  • sha is string[56] mandatory read-only
SHA2 224 56-byted checksum over the RPM file containment. Can be used as unique file index.
  • size is string mandatory write-once
Size of the rpm file.
  • src_slug is string optional write-once
Slug of the source RPM. Must be presented and valid if arch is not src, or be blank if arch is src.
  • spec is string mandatory write-only write-once
RPM spec text binary.
  • tag_names is string array mandatory read-only
Array of tag names which are bind to the RPM.
  • descriptions_count is positive mandatory read-only
Count of descriptions that are provided to the Rpm record.
  • descriptions is Lorem array optional write-only
Array of descriptions of the rpm, text of which is stored in encoding specified by cp field, and cpis autodetected or inferred from encoding RPM field. It represents Lorem structure.