@@ -94,7 +94,6 @@ sources=(
94
94
if [ ! -d " $srcdir " ]; then
95
95
echo ' Source directory does not exist; trying to extract'
96
96
srcfile=" $bzipsdir /php-$SHORT_VERSION .tar.bz2"
97
- sigfile=" $bzipsdir /php-$SHORT_VERSION .tar.bz2.asc"
98
97
if [ ! -f " $srcfile " ]; then
99
98
# Check for GPG existence.
100
99
gpg=" $( which gpg) "
@@ -113,13 +112,6 @@ if [ ! -d "$srcdir" ]; then
113
112
114
113
if [ ! -f " $srcfile " ]; then
115
114
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
123
115
fi
124
116
125
117
if [ -f " $srcfile " ]; then
@@ -132,20 +124,6 @@ if [ ! -d "$srcdir" ]; then
132
124
echo " $url " >&2
133
125
exit 2
134
126
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
149
127
fi
150
128
151
129
# extract
0 commit comments