If this is still a problem, then we should carry a patch in
init-system-helpers or try to get something similar into Debian,
instead of putting this patched version of the script into our path at
runtime.
DistUpgrade: remove old and unused DistUpgradePatcher
This patcher logic, although currently called, has been a no-op since
2013 when the last script in DistUpgrade patches was removed by
commit 460b2712b3 ("DistUpgrade/patches/: remove pycompile patch").
The README describing this feature:
This dir can be used to drop *ed* script as patches (we can not use
patch as its not part of the default install) to fixup stuff that is
problematic during the upgrade (like doc-base and
/usr/sbin/install-docs).
The files have the format _path_to_binary.orig_md5sum.result_md5sum
The upgrader will check for binaries with the matching md5sum and
apply the patches if the md5sum is correct (first --dry-run to
ensure it applies cleanly).
Caveats:
- it does *not* do binary patching
- the md5sum calculation in python is not efficient, so do
*not* patch huge files
- the ed implementation is in python and reads the full file
into memory so only use it for smallish files
This is very much like the quirk process, which we use consistently
these days. Remove this unused code.