From 3c9c0bab8cdc78416142db9560286296edb7750f Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Mon, 2 Aug 2010 22:04:31 -0300 Subject: small fixes --- g_octave/fetch.py | 4 +++- g_octave/log.py | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/g_octave/fetch.py b/g_octave/fetch.py index c67af1c..5751ca0 100644 --- a/g_octave/fetch.py +++ b/g_octave/fetch.py @@ -118,12 +118,14 @@ class GitHub: fp.extractall(conf.db) dirs = glob.glob('%s/%s-%s*' % (conf.db, self.user, self.repo)) if len(dirs) != 1: - print('Failed to extract the tarball.', file=sys.stderr) + raise FetchException('Failed to extract the tarball.') return for f in os.listdir(dirs[0]): shutil.move(os.path.join(dirs[0], f), conf.db) os.rmdir(dirs[0]) +# TODO: Implement gitweb support + __modules__ = [ GitHub ] diff --git a/g_octave/log.py b/g_octave/log.py index c28bcde..74b5f5d 100644 --- a/g_octave/log.py +++ b/g_octave/log.py @@ -12,6 +12,8 @@ from __future__ import print_function, absolute_import +__all__ = ['Log'] + import logging import sys -- cgit v1.2.3-65-gdbad