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 }}
|
2023-05-06 06:33:15 +00:00
|
|
|
rm /tmp/debian-chroot/usr/share/doc-base/doc-debian.debian-*
|
2022-05-25 14:02:09 +00:00
|
|
|
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
|
2023-03-18 14:10:28 +00:00
|
|
|
for p in doc-debian tzdata; do
|
2024-10-11 16:29:25 +00:00
|
|
|
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
|
2023-03-18 14:10:28 +00:00
|
|
|
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 -
|