X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=blobdiff_plain;f=userdir_gpg.py;fp=userdir_gpg.py;h=455ba3fd60e99e5dc2d4d9d75a6aafc05ad800c7;hp=9f494fb6788245b42e2d175f630bb78a77ccaae1;hb=6730238ac1007b899b87675301db3a01dfece0da;hpb=566b90f55eb6ebbede83ae9ac8ed6d466bc19ec3 diff --git a/userdir_gpg.py b/userdir_gpg.py index 9f494fb..455ba3f 100644 --- a/userdir_gpg.py +++ b/userdir_gpg.py @@ -1,4 +1,5 @@ # Copyright (c) 1999-2001 Jason Gunthorpe +# Copyright (c) 2005 Joey Schulze # # 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 = {}; + + dir = os.path.expanduser("~/.gnupg") + if not os.path.isdir(dir): + os.mkdir(dir, 0700) + try: Strm = os.popen(string.join(Args," "),"r");