pungi/pungi
Jeremy Cline ee1ee0467b extra-files: Write a metadata file enumerating extra files
Introduces a new metadata file to track arbitrary files added during the
extra-files phase. This file is placed in the root of each tree and is
called ``extra_files.json``. It is a JSON file containing a single
object, which contains a "header" key with an object describing the
metadata, and a "data" key, which is an array of objects, where each
object represents a file. Each object contains the "file", "checksums",
and "size" keys. "file" is the relative path from the tree root to the
extra file. "checksums" is an object containing one or more checksums,
where the key is the digest type and the value of that key is the hex
digest. Finally, the size is the size of the file in bytes.

For example:
{
  "header": {"version": "1.0},
  "data": [
    {
      "file": "GPL",
      "checksums": {
        "sha256": "8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643"
      },
      "size": 18092
    },
    {
      "file": "release-notes/notes.html",
      "checksums": {
        "sha256": "82b1ba8db522aadf101dca6404235fba179e559b95ea24ff39ee1e5d9a53bdcb"
      },
      "size": 1120
    }
  ]
}

Signed-off-by: Jeremy Cline <jeremy@jcline.org>
Fixes: #295
2016-09-07 13:02:48 +02:00
..
compose_metadata [metadata] Simplify writing media.repo 2016-05-23 18:34:04 +02:00
phases extra-files: Write a metadata file enumerating extra files 2016-09-07 13:02:48 +02:00
wrappers extra-files: Write a metadata file enumerating extra files 2016-09-07 13:02:48 +02:00
__init__.py Add full Pungi version to log output 2016-08-16 08:12:40 +02:00
arch.py Initial code merge for Pungi 4.0. 2015-02-10 08:19:34 -05:00
checks.py Add JSON Schema for configuration 2016-09-01 10:56:15 +02:00
compose.py Automatically generate missing image version 2016-09-01 15:13:04 +02:00
config.py Load multilib configuration from local dir in development 2015-11-27 10:27:43 +01:00
createiso.py [createiso] Use shell script for runroot 2016-08-10 13:39:50 +02:00
gather.py gather: Check if txmbr.isDep is set for conditional deps. 2015-09-10 09:38:09 -04:00
ks.py Initial code merge for Pungi 4.0. 2015-02-10 08:19:34 -05:00
linker.py gather: Implement hashed directories. 2015-07-24 04:40:55 -04:00
media_split.py [media-split] Remove commented-out code 2016-06-01 14:11:56 +02:00
metadata.py extra-files: Write a metadata file enumerating extra files 2016-09-07 13:02:48 +02:00
multilib.py Remove ambiguous imports 2016-07-20 13:36:42 +02:00
notifier.py Pungi should log when it tries to publish notifications. 2016-04-27 12:09:57 -04:00
ostree.py Stop using str.format 2016-05-25 13:41:49 +02:00
pathmatch.py Initial code merge for Pungi 4.0. 2015-02-10 08:19:34 -05:00
paths.py Add JSON Schema for configuration 2016-09-01 10:56:15 +02:00
util.py extra-files: Write a metadata file enumerating extra files 2016-09-07 13:02:48 +02:00