mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
cd6075ba94
Newer versions of debian and ubuntu come with gpg pointing to gpg2. We can currently only handle gpg1 CLIs though. Luckily the old gpg is still available in the package gnupg1 (providing bin/gpg1). As a bit of a stop-gap, until #657 can be resolved properly, we'll detect the version of bin/gpg. If it is unsuitable we'll fall back and try bin/gpg1. If neither is found to be suitable the signer/verifier will not work. Same applies to gpgv/gpgv1.
30 lines
757 B
Bash
Executable File
30 lines
757 B
Bash
Executable File
#!/bin/sh
|
|
|
|
while [ "$1" != "" ]; do
|
|
case $1 in
|
|
--version)
|
|
/bin/cat <<'OUTPUT'
|
|
gpg (GnuPG) 1.4.22
|
|
Copyright (C) 2015 Free Software Foundation, Inc.
|
|
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
|
|
This is free software: you are free to change and redistribute it.
|
|
There is NO WARRANTY, to the extent permitted by law.
|
|
|
|
Home: ~/.gnupg
|
|
Supported algorithms:
|
|
Pubkey: RSA, RSA-E, RSA-S, ELG-E, DSA
|
|
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
|
|
CAMELLIA128, CAMELLIA192, CAMELLIA256
|
|
Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
|
|
Compression: Uncompressed, ZIP, ZLIB, BZIP2
|
|
OUTPUT
|
|
;;
|
|
-?*)
|
|
echo "Unknown option: $1"
|
|
;;
|
|
*)
|
|
break
|
|
esac
|
|
shift
|
|
done
|