aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2010-06-27 16:41:42 -0300
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2010-06-27 16:41:42 -0300
commit87eb51d225d376aa7152831492b1eff8c1ad14d1 (patch)
treed1e49b9a48b377242fd3fce8d48cc577f21a4072 /scripts
parentsmall documentation fixes (diff)
downloadg-octave-87eb51d225d376aa7152831492b1eff8c1ad14d1.tar.gz
g-octave-87eb51d225d376aa7152831492b1eff8c1ad14d1.tar.bz2
g-octave-87eb51d225d376aa7152831492b1eff8c1ad14d1.zip
added g-octave eclass to the source tree. small fixes at scripts/package_database.py
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/package_database.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/package_database.py b/scripts/package_database.py
index 84e9235..9dffce6 100755
--- a/scripts/package_database.py
+++ b/scripts/package_database.py
@@ -29,6 +29,9 @@ from g_octave import config
from g_octave.svn import revisions, utils
def main(argv):
+ if len(argv) < 2:
+ print >> sys.stderr, 'You should provide the name of the generated tarball'
+ return 1
conf = config.Config()
json_file = os.path.join(conf.db, 'revisions.json')
db = revisions.Revisions(json_file).get()
@@ -54,6 +57,7 @@ def main(argv):
raise RuntimeError('An error was ocurred: %s' % err)
finally:
shutil.rmtree(temp_dir)
+ return 0
if __name__ == '__main__':