2022-05-25 14:02:09 +00:00
|
|
|
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
export LC_ALL=C.UTF-8
|
|
|
|
trap "rm -rf /tmp/debian-chroot" EXIT INT TERM
|
|
|
|
{{ CMD }} --mode=root --variant=apt --include=doc-debian --include=tzdata {{ DIST }} /tmp/debian-chroot {{ MIRROR }}
|
|
|
|
rm /tmp/debian-chroot/usr/share/doc-base/debian-*
|
|
|
|
rm -r /tmp/debian-chroot/usr/share/doc/debian
|
|
|
|
rm -r /tmp/debian-chroot/usr/share/doc/doc-debian
|
2023-01-03 21:24:22 +00:00
|
|
|
rm /tmp/debian-chroot/usr/share/lintian/overrides/tzdata
|
2022-05-25 14:02:09 +00:00
|
|
|
rm /tmp/debian-chroot/etc/localtime
|
2023-02-18 22:18:01 +00:00
|
|
|
rm /tmp/debian-chroot/etc/timezone
|
2022-05-25 14:02:09 +00:00
|
|
|
rm -r /tmp/debian-chroot/usr/share/doc/tzdata
|
|
|
|
rm -r /tmp/debian-chroot/usr/share/zoneinfo
|
|
|
|
rm /tmp/debian-chroot/var/lib/apt/extended_states
|
2023-03-18 14:10:28 +00:00
|
|
|
for p in doc-debian tzdata; do
|
|
|
|
for f in list md5sums config postinst postrm templates preinst prerm; do
|
|
|
|
[ -e "/tmp/debian-chroot/var/lib/dpkg/info/$p.$f" ] || continue
|
|
|
|
rm "/tmp/debian-chroot/var/lib/dpkg/info/$p.$f"
|
|
|
|
done
|
|
|
|
done
|
2022-05-25 14:02:09 +00:00
|
|
|
tar -C /tmp/debian-chroot --one-file-system -c . | tar -t | sort | diff -u tar1.txt -
|