-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from dmach/productmd-1.1
Productmd 1.1
- Loading branch information
Showing
17 changed files
with
781 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
=========================== | ||
Composeinfo file format 1.1 | ||
=========================== | ||
|
||
composeifo.json files provide details about composes which includes | ||
product information, variants, architectures and paths. | ||
|
||
|
||
Changes from 1.0 | ||
================ | ||
|
||
* Added 'type' field to 'header', "productmd.composeinfo" required | ||
* Added 'type' field to 'release' | ||
* Added 'type' field to 'base_product' | ||
|
||
|
||
File Format | ||
=========== | ||
Composeinfo is stored as a JSON serialized dictionary. | ||
It's recommended to sort keys alphabetically and use 4 spaces for indentation | ||
in order to read and diff composeinfo.json files easily. | ||
|
||
|
||
:: | ||
|
||
{ | ||
"header": { | ||
"type": "productmd.composeinfo", # metadata type; "productmd.composeinfo" required; [new in 1.1] | ||
"version": "1.1" # metadata version; format: $major<int>.$minor<int> | ||
}, | ||
"payload": { | ||
"compose": { | ||
"id": <str>, | ||
"date": <str>, | ||
"respin": <int>, | ||
"type": <str>, | ||
"label": <str|unset>, | ||
"final": <bool=false> # true if a compose is final for a milestone (for example latest Beta-1.x) | ||
}, | ||
"release": { | ||
"name": <str>, | ||
"version": <str>, | ||
"short": <str>, | ||
"type": <str>, # [new in 1.1] | ||
"is_layered": <bool=false>, | ||
}, | ||
"base_product": { | ||
"name": <str>, | ||
"version": <str>, | ||
"short": <str>, | ||
"type": <str>, # [new in 1.1] | ||
}, | ||
"variants": { | ||
variant_uid<str>: { | ||
"id": <str>, | ||
"uid": <str>, | ||
"name": <str>, | ||
"type": <str>, | ||
"arches": [<str>], | ||
"paths": { | ||
path_category<str>: { | ||
arch<str>: <str>, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
====================== | ||
Images file format 1.1 | ||
====================== | ||
|
||
images.json files provide details about images included in composes. | ||
|
||
|
||
Changes from 1.0 | ||
================ | ||
|
||
* Added 'type' field to 'header', "productmd.images" required | ||
* Added 'subvariant' field to image | ||
|
||
|
||
File Format | ||
=========== | ||
|
||
Compose images metadata is stored as a JSON serialized dictionary. | ||
It's recommended to sort keys alphabetically and use 4 spaces for indentation | ||
in order to read and diff images.json files easily. | ||
|
||
:: | ||
|
||
{ | ||
"header": { | ||
"type": "productmd.images", # metadata type; "productmd.images" required; [new in 1.1] | ||
"version": "1.1" # metadata version; format: $major<int>.$minor<int> | ||
}, | ||
"payload": { | ||
"compose": { # see composeinfo for details | ||
"date": <str>, | ||
"id": <str>, | ||
"respin": <int>, | ||
"type": <str> | ||
}, | ||
"images": { | ||
variant_uid<str>: { # compose variant UID | ||
arch<str>: [ # compose variant arch | ||
{ | ||
"arch": <str>, # image arch | ||
"bootable": <bool>, # can the image be booted? | ||
"checksums": { | ||
type<str>: <str> # | ||
}, | ||
"disc_count": <int>, # number of discs in media set | ||
"disc_number": <int>, # disc number | ||
"format": <str>, # see productmd.images.SUPPORTED_IMAGE_FORMATS | ||
"implant_md5": <str|null>, # md5 checksum implanted directly on media (see implantisomd5 and checkisomd5 commands) | ||
"mtime": <int>, # mtime of the image stored as a decimal unix timestamp | ||
"path": <str>, # relative path to the image | ||
"subvariant": <str>, # image content (e.g. 'Workstation' or 'KDE'); [new in 1.1] | ||
"size": <int>, # file size of the image | ||
"type": <str>, # see productmd.images.SUPPORTED_IMAGE_TYPES | ||
"volume_id": <str|null> # volume ID; null if not available/applicable | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,159 @@ | ||
==================== | ||
RPMs file format 1.1 | ||
==================== | ||
|
||
rpms.json files provide details about RPMs included in composes. | ||
|
||
|
||
Changes from 1.0 | ||
================ | ||
|
||
* Added 'type' field to 'header', "productmd.rpms" required | ||
|
||
|
||
File Format | ||
=========== | ||
|
||
Compose RPMs metadata is stored as a JSON serialized dictionary. | ||
It's recommended to sort keys alphabetically and use 4 spaces for indentation | ||
in order to read and diff rpms.json files easily. | ||
|
||
:: | ||
|
||
{ | ||
"header": { | ||
"type": "productmd.rpms", # metadata type; "productmd.rpms" required; [new in 1.1] | ||
"version": "1.1" # metadata version; format: $major<int>.$minor<int> | ||
}, | ||
"payload": { | ||
"compose": { # see composeinfo for details | ||
"date": <str>, | ||
"id": <str>, | ||
"respin": <int>, | ||
"type": <str> | ||
}, | ||
"rpms": { | ||
variant_uid<str>: { # compose variant UID | ||
arch<str>: { # compose variant arch | ||
srpm_nevra<str>: { # %name-%epoch:%version-%release-%arch of source RPM (koji build with epoch included) | ||
rpm_nevra<str>: { # %name-%epoch:%version-%release-%arch of RPM file | ||
"path": <str>, # relative path to RPM file | ||
"sigkey": <str|null>, # sigkey ID: hex string 8 characters long, lower case; null for unsigned RPMs | ||
"category": <str> # binary, debug, source | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
|
||
Examples | ||
======== | ||
|
||
Bash in Fedora 21:: | ||
|
||
{ | ||
"header": { | ||
"version": "1.0" | ||
}, | ||
"payload": { | ||
"compose": { | ||
"date": "20141203", | ||
"id": "Fedora-21-20141203.0", | ||
"respin": 0, | ||
"type": "production" | ||
}, | ||
"rpms": { | ||
"Server": { | ||
"armhfp": { | ||
"bash-0:4.3.30-2.fc21.src": { | ||
"bash-0:4.3.30-2.fc21.armv7hl": { | ||
"path": "Server/armhfp/os/Packages/b/bash-4.3.30-2.fc21.armv7hl.rpm", | ||
"sigkey": "95a43f54", | ||
"category": "binary" | ||
}, | ||
"bash-0:4.3.30-2.fc21.src": { | ||
"path": "Server/source/SRPMS/b/bash-4.3.30-2.fc21.src.rpm", | ||
"sigkey": "95a43f54", | ||
"category": "binary" | ||
} | ||
} | ||
}, | ||
"i386": { | ||
"bash-0:4.3.30-2.fc21.src": { | ||
"bash-0:4.3.30-2.fc21.i686": { | ||
"path": "Server/i386/os/Packages/b/bash-4.3.30-2.fc21.i686.rpm", | ||
"sigkey": "95a43f54", | ||
"category": "binary" | ||
}, | ||
"bash-0:4.3.30-2.fc21.src": { | ||
"path": "Server/source/SRPMS/b/bash-4.3.30-2.fc21.src.rpm", | ||
"sigkey": "95a43f54", | ||
"category": "binary" | ||
} | ||
} | ||
}, | ||
"x86_64": { | ||
"bash-0:4.3.30-2.fc21.src": { | ||
"bash-0:4.3.30-2.fc21.x86_64": { | ||
"path": "Server/x86_64/os/Packages/b/bash-4.3.30-2.fc21.x86_64.rpm", | ||
"sigkey": "95a43f54", | ||
"category": "binary" | ||
}, | ||
"bash-0:4.3.30-2.fc21.src": { | ||
"path": "Server/source/SRPMS/b/bash-4.3.30-2.fc21.src.rpm", | ||
"sigkey": "95a43f54", | ||
"category": "binary" | ||
} | ||
} | ||
} | ||
}, | ||
"Workstation": { | ||
"armhfp": { | ||
"bash-0:4.3.30-2.fc21.src": { | ||
"bash-0:4.3.30-2.fc21.armv7hl": { | ||
"path": "Workstation/armhfp/os/Packages/b/bash-4.3.30-2.fc21.armv7hl.rpm", | ||
"sigkey": "95a43f54", | ||
"category": "binary" | ||
}, | ||
"bash-0:4.3.30-2.fc21.src": { | ||
"path": "Workstation/source/SRPMS/b/bash-4.3.30-2.fc21.src.rpm", | ||
"sigkey": "95a43f54", | ||
"category": "binary" | ||
} | ||
} | ||
}, | ||
"i386": { | ||
"bash-0:4.3.30-2.fc21.src": { | ||
"bash-0:4.3.30-2.fc21.i686": { | ||
"path": "Workstation/i386/os/Packages/b/bash-4.3.30-2.fc21.i686.rpm", | ||
"sigkey": "95a43f54", | ||
"category": "binary" | ||
}, | ||
"bash-0:4.3.30-2.fc21.src": { | ||
"path": "Workstation/source/SRPMS/b/bash-4.3.30-2.fc21.src.rpm", | ||
"sigkey": "95a43f54", | ||
"category": "binary" | ||
} | ||
} | ||
}, | ||
"x86_64": { | ||
"bash-0:4.3.30-2.fc21.src": { | ||
"bash-0:4.3.30-2.fc21.x86_64": { | ||
"path": "Workstation/x86_64/os/Packages/b/bash-4.3.30-2.fc21.x86_64.rpm", | ||
"sigkey": "95a43f54", | ||
"category": "binary" | ||
}, | ||
"bash-0:4.3.30-2.fc21.src": { | ||
"path": "Workstation/source/SRPMS/b/bash-4.3.30-2.fc21.src.rpm", | ||
"sigkey": "95a43f54", | ||
"category": "binary" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.