summaryrefslogtreecommitdiffstats
path: root/hooks/jessie-or-older/extract00.sh
blob: f327052a033f63f374e87abe2a0930bffb85cb7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

set -eu

if [ "${MMDEBSTRAP_VERBOSITY:-1}" -ge 3 ]; then
	set -x
fi

TARGET="$1"

# not needed since dpkg 1.17.11
for f in available diversions cmethopt; do
	if [ ! -e "$TARGET/var/lib/dpkg/$f" ]; then
		touch "$TARGET/var/lib/dpkg/$f"
	fi
done