fix for debian
This commit is contained in:
parent
2e48cbb2bd
commit
1f256b7431
1 changed files with 6 additions and 3 deletions
|
@ -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):
|
||||||
|
|
Loading…
Add table
Reference in a new issue