diff options
author | 2010-08-02 22:04:31 -0300 | |
---|---|---|
committer | 2010-08-02 22:04:31 -0300 | |
commit | 3c9c0bab8cdc78416142db9560286296edb7750f (patch) | |
tree | 1061eb39033643fa69c5ec744dfa951ace378292 | |
parent | updated docstring on contrib/manage_info.py (diff) | |
download | g-octave-3c9c0bab8cdc78416142db9560286296edb7750f.tar.gz g-octave-3c9c0bab8cdc78416142db9560286296edb7750f.tar.bz2 g-octave-3c9c0bab8cdc78416142db9560286296edb7750f.zip |
small fixes
-rw-r--r-- | g_octave/fetch.py | 4 | ||||
-rw-r--r-- | g_octave/log.py | 2 |
2 files changed, 5 insertions, 1 deletions
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 |