forked from josch/mmdebstrap
Johannes Schauer Marin Rodrigues
4c3fddcd54
- multiple individual shell scripts instead of one 3.5k line monster - tests driven by Python script allowing: * declarative test description in coverage.txt * collecting errors instead of aborting on first error * skipping tests * running specific tests
22 lines
1.1 KiB
Bash
22 lines
1.1 KiB
Bash
#!/bin/sh
|
|
set -eu
|
|
export LC_ALL=C.UTF-8
|
|
{{ CMD }} --mode=root --variant=apt --architectures=amd64 --architectures=arm64 --include=libmagic-mgc:arm64 {{ DIST }} /tmp/debian-chroot {{ MIRROR }}
|
|
{ echo "amd64"; echo "arm64"; } | cmp /tmp/debian-chroot/var/lib/dpkg/arch -
|
|
rm /tmp/debian-chroot/var/lib/dpkg/arch
|
|
rm /tmp/debian-chroot/var/lib/apt/extended_states
|
|
rm /tmp/debian-chroot/var/lib/dpkg/info/libmagic-mgc.list
|
|
rm /tmp/debian-chroot/var/lib/dpkg/info/libmagic-mgc.md5sums
|
|
rm /tmp/debian-chroot/usr/lib/file/magic.mgc
|
|
rm /tmp/debian-chroot/usr/share/doc/libmagic-mgc/README.Debian
|
|
rm /tmp/debian-chroot/usr/share/doc/libmagic-mgc/changelog.Debian.gz
|
|
rm /tmp/debian-chroot/usr/share/doc/libmagic-mgc/changelog.gz
|
|
rm /tmp/debian-chroot/usr/share/doc/libmagic-mgc/copyright
|
|
rm /tmp/debian-chroot/usr/share/file/magic.mgc
|
|
rm /tmp/debian-chroot/usr/share/misc/magic.mgc
|
|
rmdir /tmp/debian-chroot/usr/share/doc/libmagic-mgc/
|
|
rmdir /tmp/debian-chroot/usr/share/file/magic/
|
|
rmdir /tmp/debian-chroot/usr/share/file/
|
|
rmdir /tmp/debian-chroot/usr/lib/file/
|
|
tar -C /tmp/debian-chroot --one-file-system -c . | tar -t | sort | diff -u tar1.txt -
|
|
rm -r /tmp/debian-chroot
|