From 7ba60cae8fc7a5e847ec3aa65c082a7392caccac Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Tue, 1 May 2012 14:07:09 +0300 Subject: [PATCH] Consider --author-name and --author-email options in import mode Change-Id: I91ed7b1ec516787677d01da9b7bb6ba9abb243f8 --- gitbuildsys/cmd_import.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gitbuildsys/cmd_import.py b/gitbuildsys/cmd_import.py index db4896e..02c132e 100644 --- a/gitbuildsys/cmd_import.py +++ b/gitbuildsys/cmd_import.py @@ -18,6 +18,7 @@ """Implementation of subcmd: import """ +import os import msger @@ -26,10 +27,10 @@ from gbp.scripts.import_orig_rpm import main as gbp_import_orig def do(opts, args): - if not opts.author_name: - msger.error('commit user name must be specified') - if not opts.author_email: - msger.error('commit user email must be specified') + if opts.author_name: + os.environ["GIT_AUTHOR_NAME"] = opts.author_name + if opts.author_email: + os.environ["GIT_AUTHOR_EMAIL"] = opts.author_email if len(args) < 1: msger.error('missing argument, please reference gbs import --help.') -- 2.7.4