From: Markus Lehtonen Date: Mon, 3 Jun 2013 09:35:25 +0000 (+0300) Subject: import: enable --upstream-vcs-tag option for src.rpms X-Git-Tag: 0.17~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4eff2ddf4cacbeb59112a68d7a924d40b6c3d569;p=tools%2Fgbs.git import: enable --upstream-vcs-tag option for src.rpms As this option was recently added into git-import-srpm. Change-Id: Iaba0f33c58326a5f3a3d2781d996c7f3a52f6816 Signed-off-by: Markus Lehtonen --- diff --git a/gitbuildsys/cmd_import.py b/gitbuildsys/cmd_import.py index 8676e7a..efd8e88 100644 --- a/gitbuildsys/cmd_import.py +++ b/gitbuildsys/cmd_import.py @@ -60,6 +60,8 @@ def main(args): params.append("--pristine-tar") if args.filter: params += [('--filter=%s' % f) for f in args.filter] + if args.upstream_vcs_tag: + params.append('--upstream-vcs-tag=%s' % args.upstream_vcs_tag) if path.endswith('.src.rpm') or path.endswith('.spec'): if args.allow_same_version: @@ -77,8 +79,6 @@ def main(args): elif ret: raise GbsError("Failed to import %s" % path) else: - if args.upstream_vcs_tag: - params.append('--upstream-vcs-tag=%s' % args.upstream_vcs_tag) if args.merge: params.append('--merge') else: diff --git a/tools/gbs b/tools/gbs index 823c292..dd093ea 100755 --- a/tools/gbs +++ b/tools/gbs @@ -46,6 +46,9 @@ def import_parser(parser): parser.add_argument('--author-email', help='author email of git commit') parser.add_argument('--upstream-branch', help='specify upstream branch for new package version') + parser.add_argument('--upstream-vcs-tag', + help='upstream VCS tag on top of which to import the ' + 'orig sources') parser.add_argument('--packaging-dir', help='directory containing packaging files') parser.add_argument('--no-pristine-tar', action='store_true', @@ -69,8 +72,6 @@ def import_parser(parser): 'options') group.add_argument('--merge', action='store_true', help='merge new upstream branch to master') - group.add_argument('--upstream-vcs-tag', - help='upstream VCS tag add to the merge commit') parser.set_defaults(alias="im") return parser