use strict;
print "1..1\n";
-if (!eval { require Socket; Socket::inet_aton('pgp.mit.edu') }) {
- print "ok 1 # skip - Cannot connect to the keyserver";
-}
-elsif (!eval { require Module::Signature; 1 }) {
- warn "# Next time around, consider install Module::Signature,\n".
- "# so you can verify the integrity of this distribution.\n";
+if (!eval { require Module::Signature; 1 }) {
print "ok 1 # skip - Module::Signature not installed\n";
}
+elsif (!eval { require Socket; Socket::inet_aton('pgp.mit.edu') }) {
+ print "ok 1 # skip - Cannot connect to the keyserver";
+}
else {
(Module::Signature::verify() == Module::Signature::SIGNATURE_OK())
or print "not ";