From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id C4963138A1A for ; Wed, 7 Jan 2015 23:39:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8955DE08E9; Wed, 7 Jan 2015 23:39:18 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 08375E08E9 for ; Wed, 7 Jan 2015 23:39:18 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 16E4334075E for ; Wed, 7 Jan 2015 23:39:17 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B1CFAF17F for ; Wed, 7 Jan 2015 23:39:15 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1420673738.fa65004a0aa58ae5d6762d7e278b0d130f10b749.dolsen@gentoo> Subject: [gentoo-commits] proj/gentoo-keys:master commit in: py2man/ X-VCS-Repository: proj/gentoo-keys X-VCS-Files: py2man/manpages.py X-VCS-Directories: py2man/ X-VCS-Committer: dolsen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: fa65004a0aa58ae5d6762d7e278b0d130f10b749 X-VCS-Branch: master Date: Wed, 7 Jan 2015 23:39:15 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 5c71ab17-4109-45a9-9821-157d2c7063d5 X-Archives-Hash: 1dfb6eb6af5f2f74ccf860f753da3c58 commit: fa65004a0aa58ae5d6762d7e278b0d130f10b749 Author: Brian Dolbec gentoo org> AuthorDate: Wed Jan 7 23:35:38 2015 +0000 Commit: Brian Dolbec gentoo 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