From 8d93eea529a0fbf4788b1b5a6b9fc75741d1c130 Mon Sep 17 00:00:00 2001 From: caodongxia <315816521@qq.com> Date: Wed, 13 Oct 2021 17:20:49 +0800 Subject: [PATCH] add -h option to scl command --- add-h-option-to-scl-command.patch | 34 +++++++++++++++++++++++++++++++ scl-utils.spec | 7 +++++-- 2 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 add-h-option-to-scl-command.patch diff --git a/add-h-option-to-scl-command.patch b/add-h-option-to-scl-command.patch new file mode 100644 index 0000000..3483811 --- /dev/null +++ b/add-h-option-to-scl-command.patch @@ -0,0 +1,34 @@ +From 09116bb68bb76c9f6432511f5a0f054a2e3b92e0 Mon Sep 17 00:00:00 2001 +From: caodongxia <315816521@qq.com> +Date: Tue, 12 Oct 2021 19:47:01 +0800 +Subject: [PATCH] add -h option to scl-command + +--- + src/scl.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/scl.c b/src/scl.c +index df8111a..1c7854a 100644 +--- a/src/scl.c ++++ b/src/scl.c +@@ -25,7 +25,7 @@ static void print_usage( const char *name ) { + fprintf(stderr, " %s load|unload [...]\n", basename(name)); + fprintf(stderr, " %s list-collections\n", basename(name)); + fprintf(stderr, " %s list-packages|man|register|deregister \n", basename(name)); +- fprintf(stderr, " %s --help\n\n", basename(name)); ++ fprintf(stderr, " %s -h|--help\n\n", basename(name)); + + fprintf(stderr, + "description:\n" +@@ -36,7 +36,7 @@ static void print_usage( const char *name ) { + " list-packages list packages in Software Collection\n" + " man show manual page about Software Collection\n" + " register|deregister register/deregister Software Collection\n" +- " --help show this help\n" ++ " -h|--help show this help\n" + "\nUse '-' as to read the command from standard input.\n"); + } + +-- +2.27.0 + diff --git a/scl-utils.spec b/scl-utils.spec index b549917..6f79152 100644 --- a/scl-utils.spec +++ b/scl-utils.spec @@ -3,7 +3,7 @@ Name: scl-utils Epoch: 1 Version: 2.0.2 -Release: 2 +Release: 3 Summary: Utilities for alternative packaging License: GPLv2+ URL: https://github.com/sclorg/scl-utils @@ -16,7 +16,7 @@ Requires: %{_bindir}/modulecmd Patch1: 0003-Scl-utils-layout-patch-from-fedora-famillecollet.com.patch Patch100: scl-utils-2.0.2-rhbz-1728450.patch Patch101: fix-direct-scl_source-help-output.patch - +Patch102: add-h-option-to-scl-command.patch %description Run-time utility for alternative packaging. @@ -71,6 +71,9 @@ ln -s prefixes conf %{_rpmconfigdir}/brp-scl-python-bytecompile %changelog +* Tue Oct 12 2021 caodongxia - 2.0.2-3 +- add -h option to scl command + * Fri Oct 08 2021 wangyue - 2.0.2-2 - fix direct scl_source --help output -- Gitee