diff options
author | Guido Guenther <agx@sigxcpu.org> | 2008-10-02 11:29:02 +0200 |
---|---|---|
committer | Guido Guenther <agx@sigxcpu.org> | 2008-10-02 12:26:37 +0200 |
commit | fb6187fa70c142d928c632802ead98bf9421795a (patch) | |
tree | 39811de366ab9681676f80555db5d453e862d5fb /git-import-dsc | |
parent | bbd9946d244699ecd9dafa54d91d55d4a48ccb66 (diff) |
silence parse_dsc and move sanity checks into DscFile
makes git-import-dsc{,s} less chatty
Diffstat (limited to 'git-import-dsc')
-rwxr-xr-x | git-import-dsc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/git-import-dsc b/git-import-dsc index 4755efdb..0f5e8548 100755 --- a/git-import-dsc +++ b/git-import-dsc @@ -123,6 +123,17 @@ def create_debian_branch(debian_branch, dirs): os.chdir(dirs['top']) +def print_dsc(dsc): + if dsc.native: + print "Debian Native Package" + print "Version:", dsc.upstream_version + else: + print "Upstream version:", dsc.upstream_version + print "Debian version:", dsc.debian_version + if dsc.epoch: + print "Epoch: %s" % dsc.epoch + + def main(argv): dirs = {'top': os.path.abspath(os.curdir)} ret = 0 @@ -164,6 +175,8 @@ def main(argv): raise GbpError else: src = parse_dsc(args[0]) + if options.verbose: + print_dsc(src) try: repo = GitRepository('.') |