projects
/
mirror
/
userdir-ldap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
566b90f
)
Create ~/.gnupg if it does not exist since gpg will fail fatally otherwise
author
joey
<>
Sun, 23 Jan 2005 16:00:53 +0000
(16:00 +0000)
committer
joey
<>
Sun, 23 Jan 2005 16:00:53 +0000
(16:00 +0000)
userdir_gpg.py
patch
|
blob
|
history
diff --git
a/userdir_gpg.py
b/userdir_gpg.py
index
9f494fb
..
455ba3f
100644
(file)
--- a/
userdir_gpg.py
+++ b/
userdir_gpg.py
@@
-1,4
+1,5
@@
# Copyright (c) 1999-2001 Jason Gunthorpe <jgg@debian.org>
# Copyright (c) 1999-2001 Jason Gunthorpe <jgg@debian.org>
+# Copyright (c) 2005 Joey Schulze <joey@infodrom.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@
-424,6
+425,11
@@
def GPGKeySearch(SearchCriteria):
Owner = "";
KeyID = "";
Hits = {};
Owner = "";
KeyID = "";
Hits = {};
+
+ dir = os.path.expanduser("~/.gnupg")
+ if not os.path.isdir(dir):
+ os.mkdir(dir, 0700)
+
try:
Strm = os.popen(string.join(Args," "),"r");
try:
Strm = os.popen(string.join(Args," "),"r");