mmdebstrap/hooks/jessie-or-older/extract00.sh

17 lines
256 B
Bash
Raw Permalink Normal View History

2022-12-23 09:02:04 +00:00
#!/bin/sh
set -eu
if [ "${MMDEBSTRAP_VERBOSITY:-1}" -ge 3 ]; then
set -x
fi
TARGET="$1"
# not needed since dpkg 1.17.11
2022-12-23 09:02:04 +00:00
for f in available diversions cmethopt; do
if [ ! -e "$TARGET/var/lib/dpkg/$f" ]; then
touch "$TARGET/var/lib/dpkg/$f"
fi
done