fix for debian

This commit is contained in:
Nikos Kouremenos 2005-06-26 12:41:18 +00:00
parent 2e48cbb2bd
commit 1f256b7431

View file

@ -22,9 +22,12 @@ from tempfile import *
USE_GPG = 1
try:
from common import GnuPGInterface
except:
USE_GPG = 0
import GnuPGInterface # Debian package doesn't distribute 'our' file
except ImportError:
try:
from common import GnuPGInterface # use 'our' file
except ImportError:
USE_GPG = 0 # user can't do OpenGPG only if he removed the file!
else:
class GnuPG(GnuPGInterface.GnuPG):