sksdump fix. again.

This commit is contained in:
brent s 2017-09-18 03:13:01 -04:00
parent fb7d964516
commit 23a0dfedb1
2 changed files with 5 additions and 2 deletions

1
gpg/kant/.gitignore vendored
View File

@ -1 +1,2 @@
/gpgme.pdf /gpgme.pdf
/tests

View File

@ -113,8 +113,10 @@ def destPrep(args):
if len(os.listdir(thisdir)) == 0: if len(os.listdir(thisdir)) == 0:
os.rmdir(thisdir) os.rmdir(thisdir)
for d in dirs: for d in dirs:
if len(os.listdir(os.path.join(thisdir, d))) == 0: _dir = os.path.join(thisdir, d)
os.rmdir(os.path.join(thisdir, d)) if os.path.isdir(_dir):
if len(os.listdir(_dir)) == 0:
os.rmdir(os.path.join(thisdir, d))
#try: #try:
# os.removedirs(sks['destdir']) # Remove empty dirs # os.removedirs(sks['destdir']) # Remove empty dirs
#except: #except: