7
# Try to gracefully handle upgrades from a pre-0.3.3 version
11
dpkg --compare-versions $2 \<= 0.3.2-1
14
if [ $result = 0 ]; then
16
Due to a bug in the way secret keys were encrypted in versions prior
17
to 0.3.3, this version of gnupg is not backwards compatible with $2
18
which you have (had) installed on your system.
20
There is an upgrade strategy (see /usr/doc/gnupg/NEWS.gz after this
21
version is installed), but it requires an old copy of the gpg and gpgm
23
echo -n "binaries; shall I make copies of them for you (Y/n)? "
25
if [ ! "$answer" = "n" -a ! "$answer" = "N" ]; then
26
cp /usr/bin/gpg /usr/bin/gpg.old
27
cp /usr/bin/gpgm /usr/bin/gpgm.old
28
echo "Okay, done. The old versions are /usr/bin/gpg*.old"
30
echo "Okay, I haven't made backups."
34
If at any stage you need a pre-0.3.3 gnupg, you can find source and
35
binaries for i386, m68k, alpha, powerpc and hurd-i386 at
37
http://people.debian.org/~troup/gnupg/
39
Press return to continue