whitespace cleanup

Signed-off-by: Andreas Beckmann <anbe@debian.org>
improve quoting of spaces

Signed-off-by: Andreas Beckmann <anbe@debian.org>
p-r: factor out a write_template_html() method

as well as Section._write_template_html()

Signed-off-by: Andreas Beckmann <anbe@debian.org>
p-r: handle general substitutions in write_template_html()

and cache the section navigation bar

Signed-off-by: Andreas Beckmann <anbe@debian.org>
p-r: insert piuparts version via Template

Signed-off-by: Andreas Beckmann <anbe@debian.org>
p-r: include md5 sum of content in the html pages

hashing skips the volatile elements md5sum, timestamp, piuparts version

Signed-off-by: Andreas Beckmann <anbe@debian.org>
p-r: defer writing unmodified maintainer and source summaries

reduce I/O write load generated by piuparts-report: there are
nearly 20000 source packages in sind and more than 3000 maintainers,
but their summary packages don't change frequently, so defer rewriting
them a bit at the cose of having a stale timestamp

read the comtent md5 hash from the old file and compare

any change to the template, navigation bar, etc. will trigger an update

Signed-off-by: Andreas Beckmann <anbe@debian.org>
p-r: randomize the rewriting delay between 1 and 2 weeks

Signed-off-by: Andreas Beckmann <anbe@debian.org>
p-r: sort maintainer summary by state

move failing packages on top

Signed-off-by: Andreas Beckmann <anbe@debian.org>
p-r: fix incorrect html

and improve formatting a bit

Signed-off-by: Andreas Beckmann <anbe@debian.org>