aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2010-08-02 22:04:31 -0300
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2010-08-02 22:04:31 -0300
commit3c9c0bab8cdc78416142db9560286296edb7750f (patch)
tree1061eb39033643fa69c5ec744dfa951ace378292
parentupdated docstring on contrib/manage_info.py (diff)
downloadg-octave-3c9c0bab8cdc78416142db9560286296edb7750f.tar.gz
g-octave-3c9c0bab8cdc78416142db9560286296edb7750f.tar.bz2
g-octave-3c9c0bab8cdc78416142db9560286296edb7750f.zip
small fixes
-rw-r--r--g_octave/fetch.py4
-rw-r--r--g_octave/log.py2
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