File: gpg

package info (click to toggle)
dgit 12.16
  • links: PTS, VCS
  • area: main
  • in suites: trixie-proposed-updates
  • size: 3,368 kB
  • sloc: perl: 13,443; sh: 6,466; python: 334; makefile: 324; tcl: 69
file content (22 lines) | stat: -rwxr-xr-x 597 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
set -e

exec \
with-lock-ex -w "$DGIT_TEST_GNUPG_GLOBAL_LOCK" \
	sh -c '
		"$@" 9>&2 2>>"$DGIT_TEST_GNUPG_LOG"
		rc=$?
		if [ $rc = 0 ]; then exit 0; fi
		if [ "x$DGIT_TEST_BYHAND" != x ]; then
			echo >&2 "BYHAND, not dumping $DGIT_TEST_GNUPG_LOG"
		else
			echo >&2 "########################################"
			echo >&2 "$DGIT_TEST_GNUPG_LOG"
			sed '\''s/^/\[gnupg-workarounds] /'\'' >&2 \
				"$DGIT_TEST_GNUPG_LOG"
			echo >&2 "end of $DGIT_TEST_GNUPG_LOG"
			echo >&2 "########################################"
		fi
		exit $rc
	' x \
	"$DGIT_TEST_TROOT"/tstunt/gpg-withagent "$@"