Bug#30126: dpkg: dpkg-divert does not work with directories.
dpkg-divert --rename /usr/include/linux
Then dpkg still installs files to
/usr/include/linux/... not to /usr/include/linux.distrib.
Either this behaviour should be fixed, so the files go in
/usr/include/linux.distrib/..., or when trying to divert a
directory, an error should be spewed saying "Not supported"
-- System Information
Debian Release: 2.0
Kernel Version: Linux lpsg 2.1.129 #1 Fri Nov 20 21:03:17 GMT 1998 i586 unknown
Versions of the packages dpkg depends on:
hi libc6 2.0.7u-2 The GNU C library version 2 (run-time files)
hi libstdc++2.8 2.90.29-1 The GNU stdc++ library (egcs version)
hi ncurses3.4 1.9.9g-8.8 Video terminal manipulation - shared librari