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 USE_GPG = 1
try: try:
from common import GnuPGInterface import GnuPGInterface # Debian package doesn't distribute 'our' file
except: except ImportError:
USE_GPG = 0 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: else:
class GnuPG(GnuPGInterface.GnuPG): class GnuPG(GnuPGInterface.GnuPG):