Skip to content

Commit dd12c8a

Browse files
authored
Remove sig verification
1 parent 157cf76 commit dd12c8a

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

src/compile.sh

-22
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ sources=(
9494
if [ ! -d "$srcdir" ]; then
9595
echo 'Source directory does not exist; trying to extract'
9696
srcfile="$bzipsdir/php-$SHORT_VERSION.tar.bz2"
97-
sigfile="$bzipsdir/php-$SHORT_VERSION.tar.bz2.asc"
9897
if [ ! -f "$srcfile" ]; then
9998
# Check for GPG existence.
10099
gpg="$(which gpg)"
@@ -113,13 +112,6 @@ if [ ! -d "$srcdir" ]; then
113112

114113
if [ ! -f "$srcfile" ]; then
115114
echo "Fetching sources from $url failed"
116-
elif [ ! -f "$sigfile" ]; then
117-
echo "Downloading the signature..."
118-
wget -P "$bzipsdir" -O "$sigfile" "${url/.tar.bz2/.tar.bz2.asc}"
119-
120-
if [ ! -s "$sigfile" ] && [ -f "$sigfile" ]; then
121-
rm -f "$sigfile"
122-
fi
123115
fi
124116

125117
if [ -f "$srcfile" ]; then
@@ -132,20 +124,6 @@ if [ ! -d "$srcdir" ]; then
132124
echo "$url" >&2
133125
exit 2
134126
fi
135-
136-
if [ ! -f "$sigfile" ]; then
137-
echo "WARNING: no signature available!" >&2
138-
elif [ -z "$gpg" ]; then
139-
echo "WARNING: gpg not found; signature will not be verified" >&2
140-
else
141-
"$gpg" --verify --no-default-keyring --keyring ./php.gpg "$sigfile"
142-
if [ $? -ne 0 ]; then
143-
echo "ERROR: invalid signature. This release may have been tampered with." >&2
144-
echo "ERROR: See http://php.net/gpg-keys.php for more information on GPG signatures." >&2
145-
rm -f "$srcfile" "$sigfile"
146-
exit 2
147-
fi
148-
fi
149127
fi
150128

151129
#extract

0 commit comments

Comments
 (0)