[library-web] only create directory for existing documentation tarballs
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [library-web] only create directory for existing documentation tarballs
- Date: Sun, 11 Feb 2018 14:07:57 +0000 (UTC)
commit e630e894e24e6855c1c33579436f05f271a820cb
Author: Frédéric Péters <fpeters 0d be>
Date: Sun Feb 11 15:07:26 2018 +0100
only create directory for existing documentation tarballs
src/modtypes/gtkdoc.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/modtypes/gtkdoc.py b/src/modtypes/gtkdoc.py
index 8bd5cba..0dc782a 100644
--- a/src/modtypes/gtkdoc.py
+++ b/src/modtypes/gtkdoc.py
@@ -133,11 +133,11 @@ class GtkDocModule(DocModule):
htmlfiles_dir = os.path.join(ext_dirname, 'doc-tarballs', self.dirname, 'html')
if not os.path.exists(htmlfiles_dir):
logging.debug('extracting %s' % tarball_location)
- os.makedirs(htmlfiles_dir)
doc_tarball = app.download(tarball_location)
if not doc_tarball:
logging.error('skipped %s as it is missing a doc tarball' % doc_module)
return
+ os.makedirs(htmlfiles_dir)
tar2 = tarfile.open(doc_tarball, 'r')
ext2_dirname = os.path.join(ext_dirname, 'doc-tarballs',
self.dirname.split('/')[0])
for tar2info in tar2.getmembers():
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]