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
|
|
|
|
rm /tmp/debian-chroot/etc/timezone
|
|
|
|
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
|
|
|
|
rm /tmp/debian-chroot/var/lib/dpkg/info/doc-debian.list
|
|
|
|
rm /tmp/debian-chroot/var/lib/dpkg/info/doc-debian.md5sums
|
|
|
|
rm /tmp/debian-chroot/var/lib/dpkg/info/tzdata.list
|
|
|
|
rm /tmp/debian-chroot/var/lib/dpkg/info/tzdata.md5sums
|
|
|
|
rm /tmp/debian-chroot/var/lib/dpkg/info/tzdata.config
|
|
|
|
rm /tmp/debian-chroot/var/lib/dpkg/info/tzdata.postinst
|
|
|
|
rm /tmp/debian-chroot/var/lib/dpkg/info/tzdata.postrm
|
|
|
|
rm /tmp/debian-chroot/var/lib/dpkg/info/tzdata.templates
|
2023-01-03 21:24:22 +00:00
|
|
|
rm /tmp/debian-chroot/var/lib/dpkg/info/tzdata.preinst
|
|
|
|
rm /tmp/debian-chroot/var/lib/dpkg/info/tzdata.prerm
|
2022-05-25 14:02:09 +00:00
|
|
|
tar -C /tmp/debian-chroot --one-file-system -c . | tar -t | sort | diff -u tar1.txt -
|