pungi/pungi
Qixiang Wan 40df2034a8 image_checksum: add file sizes to checksum files
Write file sizes of images in checksum files with comment lines,
checksum files are in BSD-style which supports comments by starting
a line with '#'.

Example:

$ cat RHEL-7.4-20170123.n.4/compose/Server/x86_64/iso/RHEL-Server-7.4-x86_64-20170123.n.4-CHECKSUM
 # RHEL-7.4-20170123.n.4-Server-x86_64-dvd1.iso: 3725590528 bytes
 # RHEL-7.4-20170123.n.4-Server-x86_64-boot.iso: 377487360 bytes
 SHA256 (RHEL-7.4-20170123.n.4-Server-x86_64-dvd1.iso) = fa3de37fe4b859a0285f16ea1123f44f15aec169aea84bf010aa3821bd58fc41
 SHA256 (RHEL-7.4-20170123.n.4-Server-x86_64-boot.iso) = 74bf68c54665328adb08b09daf773c67e633b5907e3e2797338ab3c1b58fdf48

(No space at the start of line, because git commit message drops lines
start with '#', added one space to avoid that.)

When there are multiple checksum types specified and checksums are
written to individual files, file size of the image will also be
written to every checksum files.

Fixes: #493

Signed-off-by: Qixiang Wan <qwan@redhat.com>
2017-01-23 18:20:21 +08:00
..
compose_metadata Remove FSF address from comments 2016-09-23 10:26:43 +02:00
ostree replace ${basearch} when updating the ref 2017-01-18 21:21:26 -06:00
phases image_checksum: add file sizes to checksum files 2017-01-23 18:20:21 +08:00
wrappers Merge #475 Allow failure for some arches 2017-01-04 14:43:22 +00:00
__init__.py not using 'git -C path' which is not supported by git 1.x 2016-10-25 15:53:56 +08:00
arch.py Remove FSF address from comments 2016-09-23 10:26:43 +02:00
checks.py osbs: optionally check GPG signatures 2017-01-17 13:08:58 +08:00
compose.py Create temporary dirs under compose's workdir 2017-01-11 15:25:47 +08:00
config.py pungi: Fix reading multilib config files 2016-11-09 09:36:23 +01:00
createiso.py iso-wrapper: Remove the class 2016-10-14 09:14:51 +02:00
gather.py pungi: Fix --nosource option 2016-12-13 10:45:05 +01:00
ks.py Remove FSF address from comments 2016-09-23 10:26:43 +02:00
linker.py Remove FSF address from comments 2016-09-23 10:26:43 +02:00
media_split.py Include phase name in log for some phases 2016-11-23 16:47:22 +08:00
metadata.py metadata: Correctly parse lorax .treeinfo 2017-01-04 15:18:56 +01:00
multilib.py Remove shebangs from non-executable files 2016-09-23 10:26:43 +02:00
notifier.py Send notification when compose fails to start 2016-10-20 09:39:18 +02:00
pathmatch.py Remove FSF address from comments 2016-09-23 10:26:43 +02:00
paths.py Create temporary dirs under compose's workdir 2017-01-11 15:25:47 +08:00
util.py Include phase name in log for some phases 2016-11-23 16:47:22 +08:00