From: Zhang Qiang Date: Sat, 31 Mar 2012 06:13:45 +0000 (+0800) Subject: Add --author-name and --author-email support for gbs import X-Git-Tag: 0.4~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=09c2860f74e29e59fb736dd21c60656926b10644;p=tools%2Fgbs.git Add --author-name and --author-email support for gbs import --- diff --git a/gitbuildsys/cmd_import.py b/gitbuildsys/cmd_import.py index 4c6e3c4..231f1d7 100644 --- a/gitbuildsys/cmd_import.py +++ b/gitbuildsys/cmd_import.py @@ -44,6 +44,11 @@ def do(opts, args): if not os.path.exists(tmpdir): os.makedirs(tmpdir) + if opts.author_name: + COMM_NAME = opts.author_name + if opts.author_email: + COMM_EMAIL = opts.author_email + specfile = None if len(args) < 1: msger.error('missing argument, please reference gbs import --help.') diff --git a/gitbuildsys/cmd_import_orig.py b/gitbuildsys/cmd_import_orig.py index 0a9a327..89e1315 100644 --- a/gitbuildsys/cmd_import_orig.py +++ b/gitbuildsys/cmd_import_orig.py @@ -62,6 +62,11 @@ def do(opts, args): 'the tarball. The format of tarball name should be ' 'name-version-tizen. or name-version.') + if opts.author_name: + COMM_NAME = opts.author_name + if opts.author_email: + COMM_EMAIL = opts.author_email + try: msger.info('unpack upstream tar ball ...') upstream.unpack(tardir)