summaryrefslogtreecommitdiffstats
path: root/scripts/t/mock-bin/dpkg
blob: fbfba35aa51c628fa80151aeb1041096fc110c4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -e

args="$@"

while [ $# -gt 0 ]; do
  opt="$1"
  shift

  case "$opt" in
  --print-architecture)
    echo amd64
    exit 0
  esac
done

# Otherwise fail hard.
echo "$0: unsupported command ($args) in mock wrapper"
exit 1