cmd += ['--upstream-tag=%s' % args.upstream_tag]
if args.squash_patches_until:
cmd += ['--squash-patches-until=%s' % args.squash_patches_until]
+ if args.no_patch_export:
+ cmd += ['--no-patch-export']
if args.define:
cmd += [('--define="%s"' % i) for i in args.define]
if args.debug:
argv.append("--git-verbose")
- if force_native or is_native_pkg(repo, args):
+ if force_native or is_native_pkg(repo, args) or args.no_patch_export:
argv.extend(["--git-no-patch-export",
"--git-upstream-tree=%s" % commit])
else:
'would be included while generating tar ball')
parser.add_argument('--source-rpm', action='store_true',
help='generate source rpm')
+ parser.add_argument('--no-patch-export', action='store_true',
+ help='don\'t create patches between upstream and '
+ 'export-treeish, and create tar ball from the '
+ 'export-treeish instead of upstream branch')
parser.add_argument('--upstream-branch', help='upstream branch')
parser.add_argument('--upstream-tag',
help="upstream tag format, '${upstreamversion}' is "
'to given commit-ish into one monolithic diff file. '
'Format is the commit-ish optionally followed by a '
'colon and diff filename base.')
+ group.add_argument('--no-patch-export', action='store_true',
+ help='don\'t create patches between upstream and '
+ 'export-treeish, and create tar ball from the '
+ 'export-treeish instead of upstream branch')
group = parser.add_argument_group('incremental build options')
group.add_argument('--incremental', action='store_true',