diff options
author | Guido Guenther <agx@sigxcpu.org> | 2007-02-11 23:07:41 +0100 |
---|---|---|
committer | Guido Guenther <agx@bogon.sigxcpu.org> | 2007-02-11 23:07:41 +0100 |
commit | 41e6419dfd337165e679ece4ae3ba310abc94db3 (patch) | |
tree | 1136e2bd547b8c9894e1d1ab0fb7501518f788b6 /git-buildpackage | |
parent | 8517e0965163ce6b9ae22cb3e6e3ba09a9be8a68 (diff) |
use GBPError everywhere and move commands from __init__ to command_wrappers.py
Furthermore pass '-v' in git import-orig on to git_load_dirs
Diffstat (limited to 'git-buildpackage')
-rwxr-xr-x | git-buildpackage | 29 |
1 files changed, 11 insertions, 18 deletions
diff --git a/git-buildpackage b/git-buildpackage index 621c406a..aeb5d84c 100755 --- a/git-buildpackage +++ b/git-buildpackage @@ -1,7 +1,7 @@ #!/usr/bin/python -# -*- coding: utf-8 -*- +# vim: set fileencoding=utf-8 : # -# (C) 2006 Guido Guenther <agx@sigxcpu.org> +# (C) 2006,2007 Guido Guenther <agx@sigxcpu.org> # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or @@ -18,21 +18,14 @@ # """run commands to build a debian package out of a git repository""" -import sys,os,os.path,pipes -from git_buildpackage import GitTag, Command, CommandExecFailed -from git_buildpackage.git_utils import (GitRepositoryError, - GitRepository, - build_tag) -from git_buildpackage.deb_utils import (parse_changelog, - is_native, - orig_file, - has_orig) -from git_buildpackage.config import GBPOptionParser - - -class GbpError(Exception): - """Generic exception raised in git-buildpackage commands""" - pass +import sys +import os, os.path +import pipes +from gbp.git_utils import (GitRepositoryError, GitRepository, build_tag) +from gbp.deb_utils import (parse_changelog, is_native, orig_file, has_orig) +from gbp.command_wrappers import (GitTag, Command, CommandExecFailed) +from gbp.config import GbpOptionParser +from gbp.errors import GbpError def create_orig(cp, dir, branch): @@ -64,7 +57,7 @@ def main(argv): if "--help" in dpkg_args: args.append('--help') - parser = GBPOptionParser(command=os.path.basename(argv[0]), prefix='git-') + parser = GbpOptionParser(command=os.path.basename(argv[0]), prefix='git-') parser.add_option("--git-ignore-new", action="store_true", dest="ignore_new", default=False, help="build with uncommited changes in the source tree") |