Backport from master: Fix determination of where to store LXC templates on the buildbot
Fix determination of where to store LXC templates on the buildbot
Fix determination of where to store LXC templates on the buildbot
Only remove current build directory
Remove/recreate buildplace dir (for permissions)
Demote libapache2-svn to Recommends since Debian disables DAV anyway
regenerate
Guard against non-empty dir
need to trigger MW DB upgrade for plugin changes, too

also, MW changes outside of maintenance/postgres since,
at least since 1.19, the maintenance scripts include
more generic scripts, and that’s also where changes can be
Workaround for Debian #711098 – explicitly declare the charset
Merge branch 'Branch_5_1' into Branch_5_2

Conflicts:
	src/debian/control
	tests/lxc/Makefile
	tests/scripts/start_lxc.sh
Merged from 5.1: Don't die if one tempfile() invocation fails, return an error instead
utils: fix util_get_maxuploadfilesize function
some error checking for widgets
fix typo (‘=’ ipv ‘==’)
Fixed PHP warning
Fixed PHP warning
Rename _AuthInfo --> DebugAuthInfo
Merged from 5.2
Merged from 5.2