install known_problems to @sharedir@/piuparts/known_problems

these don't really belong to the master's bin directory

/etc/piuparts/known_problems may be considered in the future

Signed-off-by: Andreas Beckmann <anbe@debian.org>
eliminate remaining references to $HOME and ~/bin

Signed-off-by: Andreas Beckmann <anbe@debian.org>
p.conf: new global setting backup-directory

for master-bin/prepare-backup

Signed-off-by: Andreas Beckmann <anbe@debian.org>
read_config.sh: allow empty values

Not passing a default value implies the piuparts.conf needs to have
a non-empty value for the requested key. But explicitly passing an
empty ('') default value allows an empty value.

Signed-off-by: Andreas Beckmann <anbe@debian.org>
prepare_backup: get paths from piuparts.conf

Signed-off-by: Andreas Beckmann <anbe@debian.org>
prepare_backup: copy submissions.txt, too

that is history data, too

Signed-off-by: Andreas Beckmann <anbe@debian.org>
p.conf: set prefix = /org/piuparts.debian.org

that's a non-default value

Signed-off-by: Andreas Beckmann <anbe@debian.org>
p-r: call r.dev_off() after plot is finished

otherwise the gs processes started by rpy stay around until
piuparts-report has finished and will generate the plots at that moment
(and there seems to be a limit of 62 pending plots that way ...)

Signed-off-by: Andreas Beckmann <anbe@debian.org>
p-r: improve verboseness

Signed-off-by: Andreas Beckmann <anbe@debian.org>
new bug template: installs_over_existing_symlink

Signed-off-by: Andreas Beckmann <anbe@debian.org>
p-s: fix SIGHUP handling while recycling

Signed-off-by: Andreas Beckmann <anbe@debian.org>
p-s: flush and unreserve all sections on interrupt

Signed-off-by: Andreas Beckmann <anbe@debian.org>
Add exception for python-support broken symlinks.

python-support creates symlinks upon install under /usr/lib/pythonx.y,
for all supported versions of python, whether installed or not.
If the version is not installed, the symlink is broken (#635493).
If a supported python version subsequently uninstalled, the symlink
is left dangling (#385775). Fixing this involves changes across
packages that are unlikely to happen for a deprecated package.

DP Appendix B.2
http://www.debian.org/doc/packaging-manuals/python-policy/ap-packaging_tools.html

Signed-off-by: Andreas Beckmann <anbe@debian.org>
pre_distupgrade_debug_packagemanager: enable Debug::pkgPackageManager

Signed-off-by: Andreas Beckmann <anbe@debian.org>
lib/db: simplify _find_packages_ready_for_testing()

Signed-off-by: Andreas Beckmann <anbe@debian.org>
lib/db: remove reserved packages from candidates

avoid rrdeps computation if not needed
avoid O(n^2) looping over previously reserved packages

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