summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2012-11-13 11:50:34 +0200
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>2013-04-03 10:10:30 +0300
commit021b7d3688f00390da2f3d3439bc3450b2191b22 (patch)
tree56884c9c85d6705e618c3a0d7f1afd435d4e8f56
parent5c7be5ecd6a4dc470c752efb6277943b37d49b46 (diff)
downloadgit-buildpackage-021b7d3688f00390da2f3d3439bc3450b2191b22.tar.gz
git-buildpackage-021b7d3688f00390da2f3d3439bc3450b2191b22.tar.bz2
git-buildpackage-021b7d3688f00390da2f3d3439bc3450b2191b22.zip
rpm: configuration option for setting the output color scheme
Adds the new 'color-scheme' option to the rpm tools. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
-rwxr-xr-xgbp/scripts/buildpackage_rpm.py4
-rwxr-xr-xgbp/scripts/import_orig_rpm.py4
-rwxr-xr-xgbp/scripts/import_srpm.py4
-rwxr-xr-xgbp/scripts/pq_rpm.py4
4 files changed, 12 insertions, 4 deletions
diff --git a/gbp/scripts/buildpackage_rpm.py b/gbp/scripts/buildpackage_rpm.py
index 0e3a7968..78483938 100755
--- a/gbp/scripts/buildpackage_rpm.py
+++ b/gbp/scripts/buildpackage_rpm.py
@@ -335,6 +335,8 @@ def parse_args(argv, prefix):
help="verbose command execution")
parser.add_config_file_option(option_name="tmp-dir", dest="tmp_dir")
parser.add_config_file_option(option_name="color", dest="color", type='tristate')
+ parser.add_config_file_option(option_name="color-scheme",
+ dest="color_scheme")
parser.add_config_file_option(option_name="notify", dest="notify", type='tristate')
parser.add_config_file_option(option_name="vendor", action="store", dest="vendor")
tag_group.add_option("--git-tag", action="store_true", dest="tag", default=False,
@@ -410,7 +412,7 @@ def parse_args(argv, prefix):
options.patch_export_compress = rpm.string_to_int(options.patch_export_compress)
- gbp.log.setup(options.color, options.verbose)
+ gbp.log.setup(options.color, options.verbose, options.color_scheme)
if options.retag:
if not options.tag and not options.tag_only:
gbp.log.err("'--%sretag' needs either '--%stag' or '--%stag-only'" % (prefix, prefix, prefix))
diff --git a/gbp/scripts/import_orig_rpm.py b/gbp/scripts/import_orig_rpm.py
index 4b7fb481..de8b70e0 100755
--- a/gbp/scripts/import_orig_rpm.py
+++ b/gbp/scripts/import_orig_rpm.py
@@ -218,10 +218,12 @@ def parse_args(argv):
parser.add_option("-v", "--verbose", action="store_true", dest="verbose", default=False,
help="verbose command execution")
parser.add_config_file_option(option_name="color", dest="color", type='tristate')
+ parser.add_config_file_option(option_name="color-scheme",
+ dest="color_scheme")
parser.add_config_file_option(option_name="tmp-dir", dest="tmp_dir")
(options, args) = parser.parse_args(argv[1:])
- gbp.log.setup(options.color, options.verbose)
+ gbp.log.setup(options.color, options.verbose, options.color_scheme)
return options, args
diff --git a/gbp/scripts/import_srpm.py b/gbp/scripts/import_srpm.py
index 6e6338bb..ee96c004 100755
--- a/gbp/scripts/import_srpm.py
+++ b/gbp/scripts/import_srpm.py
@@ -187,6 +187,8 @@ def parse_args(argv):
default=False, help="verbose command execution")
parser.add_config_file_option(option_name="color", dest="color",
type='tristate')
+ parser.add_config_file_option(option_name="color-scheme",
+ dest="color_scheme")
parser.add_config_file_option(option_name="tmp-dir", dest="tmp_dir")
parser.add_option("--download", action="store_true", dest="download",
default=False, help="download source package")
@@ -231,7 +233,7 @@ def parse_args(argv):
import_group.add_boolean_config_file_option(option_name="patch-import",
dest="patch_import")
(options, args) = parser.parse_args(argv[1:])
- gbp.log.setup(options.color, options.verbose)
+ gbp.log.setup(options.color, options.verbose, options.color_scheme)
return options, args
diff --git a/gbp/scripts/pq_rpm.py b/gbp/scripts/pq_rpm.py
index efae0223..0e6290eb 100755
--- a/gbp/scripts/pq_rpm.py
+++ b/gbp/scripts/pq_rpm.py
@@ -501,6 +501,8 @@ def main(argv):
help="In case of import even import if the branch already exists")
parser.add_config_file_option(option_name="vendor", action="store", dest="vendor")
parser.add_config_file_option(option_name="color", dest="color", type='tristate')
+ parser.add_config_file_option(option_name="color-scheme",
+ dest="color_scheme")
parser.add_config_file_option(option_name="tmp-dir", dest="tmp_dir")
parser.add_config_file_option(option_name="upstream-tag", dest="upstream_tag")
parser.add_config_file_option(option_name="spec-file", dest="spec_file")
@@ -517,7 +519,7 @@ def main(argv):
parser.add_config_file_option("patch-export-ignore-path", dest="patch_export_ignore_path")
(options, args) = parser.parse_args(argv)
- gbp.log.setup(options.color, options.verbose)
+ gbp.log.setup(options.color, options.verbose, options.color_scheme)
options.patch_export_compress = string_to_int(options.patch_export_compress)
if len(args) < 2: