diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2010-06-27 16:41:42 -0300 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2010-06-27 16:41:42 -0300 |
commit | 87eb51d225d376aa7152831492b1eff8c1ad14d1 (patch) | |
tree | d1e49b9a48b377242fd3fce8d48cc577f21a4072 /scripts | |
parent | small documentation fixes (diff) | |
download | g-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-x | scripts/package_database.py | 4 |
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__': |