diff options
author | Guido Guenther <agx@sigxcpu.org> | 2007-08-23 21:30:29 +0200 |
---|---|---|
committer | Guido Guenther <agx@bogon.sigxcpu.org> | 2007-08-23 21:30:29 +0200 |
commit | 958b30f2193c98bb4959a8b214ff5c9a17ae0025 (patch) | |
tree | 47f4d5377e54d2cc840cee1def86ad0bff0ec4d8 /git-buildpackage | |
parent | 1a168a7883410422f91776117fe1466b1e119eda (diff) |
introduce --git-no-create-orig to skip building of any orig.tar.gz
this is especially usefull if you're working on an NMU that has a X-Y version
number although it's a Debian native package.
Diffstat (limited to 'git-buildpackage')
-rwxr-xr-x | git-buildpackage | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/git-buildpackage b/git-buildpackage index 17b541c9..f1c4455a 100755 --- a/git-buildpackage +++ b/git-buildpackage @@ -76,6 +76,8 @@ def main(argv): help="branch the debian patch is being developed on, default is '%(debian-branch)s'") parser.add_config_file_option(option_name="sign-tags", dest="sign_tag", help="sign git tags", action="store_true") + parser.add_config_file_option(option_name="no-create-orig", dest="no_create_orig", + help="create orig.tar.gz", action="store_true") parser.add_config_file_option(option_name="posttag", dest="posttag_hook", help="hook to execute after a successfull tag operation") parser.add_config_file_option(option_name="keyid", dest="keyid", @@ -109,7 +111,7 @@ def main(argv): cp = parse_changelog(changelog) if not cp: raise GbpError,"'%s' does not exist, not a debian package" % changelog - if not is_native(cp) and not has_orig(cp, output_dir): + if not is_native(cp) and not has_orig(cp, output_dir) and not options.no_create_orig: print "%s does not exist, creating from branch '%s'" % (orig_file(cp), options.upstream_branch) if not repo.has_branch(options.upstream_branch): raise GbpError, "Upstream branch '%s' does not exist" % options.upstream_branch |