Makefile: perform syntax check on *.py before installation

to avoid trivial errors being put into production by update-piuparts-setup

Signed-off-by: Andreas Beckmann <anbe@debian.org>
p: fix some typos

Signed-off-by: Andreas Beckmann <anbe@debian.org>
history: add missing buglinks, reorder, fix typos

Signed-off-by: Andreas Beckmann <anbe@debian.org>
copyright_file_missing_after_upgrade: add code examples

Signed-off-by: Andreas Beckmann <debian@abeckmann.de>
new bug template: unhandled_symlink_to_directory_conversion

usually caused by the opposite direction of actions that would lead to
copyright_file_missing_after_upgrade

Signed-off-by: Andreas Beckmann <anbe@debian.org>
detect_network_issues: Method file has died unexpectedly

Signed-off-by: Andreas Beckmann <anbe@debian.org>
prepare_backup: skip missing counts.txt files

avoid noise for newly added sections without a full report run

Signed-off-by: Andreas Beckmann <anbe@debian.org>
p: ignore manipulation of /var/lib/dpkg/arch

this is managed by dpkg --add-architecture etc.

Signed-off-by: Andreas Beckmann <anbe@debian.org>
p: allow --testdebs-repo argument to be an URL or local path

automatically build a valid deb line:
URL:   deb $URL ./
path:  deb file://$path ./

Signed-off-by: Andreas Beckmann <anbe@debian.org>
p: dump the generated sources.list

Signed-off-by: Andreas Beckmann <anbe@debian.org>
p-s: tarball recreation can be disabled with max-tgz-age = 0

Signed-off-by: Andreas Beckmann <debian@abeckmann.de>
p-s: fold fetch_packages_file() into its only caller

Signed-off-by: Andreas Beckmann <anbe@debian.org>
p-s: be less strict in package existence checks

allow distupgrading from missing, e.g. if a new package was introduced
in backports - and trust the master to only hand out sane requests

Signed-off-by: Andreas Beckmann <anbe@debian.org>
p: improve the "dirname part contains a symlink" test

improve output to include name of overwritten package, if any,
and report these as failures

Signed-off-by: Andreas Beckmann <anbe@debian.org>
lib/db: calc_rrdep_counts: count packages waiting for a package

Signed-off-by: Andreas Beckmann <anbe@debian.org>
lib/db: sort packages returned by reserve() by importance

use descending waiting_count() as primary sort key
(ideally we should use waiting_depth() as first sort key, but that
attribute is not computed and waiting_count should be a useful
approximation)
and shuffle packages with the same waiting_count

this should move packages from waiting-for-dependency-to-be-tested
to waiting-to-be-tested state earlier

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