commit:     fa65004a0aa58ae5d6762d7e278b0d130f10b749
Author:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Wed Jan  7 23:35:38 2015 +0000
Commit:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Wed Jan  7 23:35:38 2015 +0000
URL:        
http://sources.gentoo.org/gitweb/?p=proj/gentoo-keys.git;a=commit;h=fa65004a

py2man/manpages.py: Use ensure_dirs from gkeys fileops

For sdist created tarballs, it was not including an empty doc dir.

---
 py2man/manpages.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/py2man/manpages.py b/py2man/manpages.py
index 9e75d2e..f060e50 100644
--- a/py2man/manpages.py
+++ b/py2man/manpages.py
@@ -6,6 +6,8 @@ import codecs
 import os
 from datetime import datetime
 
+from gkeys.fileops import ensure_dirs
+
 from py2man.options import LONG_OPTS, SHORT_OPTS
 
 
@@ -30,6 +32,11 @@ class ManPage(object):
         self.path = docpath
         self.authors = authors
         self.date = datetime.strftime(datetime.today(),'%B %d, %Y')
+        self.ensure_docdir()
+
+
+    def ensure_docdir(self):
+        ensure_dirs(self.path)
 
 
     @staticmethod

Reply via email to