summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/upstream-signature/control-file-upstream-signature-missing/build-spec/pre-build
blob: 93d6006efe80020b2e13f8b0e1d7729af286abee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -e

DIR="$1"
NAME="control-file-upstream-signature-missing"
VERSION="1.0"

# Check all components
cp ${DIR}/../${NAME}_${VERSION}.orig.tar.gz ${DIR}/../${NAME}_${VERSION}.orig-component.tar.gz

# Don't emit if we have a signature
cp ${DIR}/../${NAME}_${VERSION}.orig.tar.gz ${DIR}/../${NAME}_${VERSION}.orig-signed.tar.gz
touch ${DIR}/../${NAME}_${VERSION}.orig-signed.tar.gz.asc

# Don't emit if we have .tar.asc (NB. not a .tar.gz.asc)
cp ${DIR}/../${NAME}_${VERSION}.orig.tar.gz ${DIR}/../${NAME}_${VERSION}.orig-noext.tar.gz
touch ${DIR}/../${NAME}_${VERSION}.orig-noext.tar.gz.asc