obs-server:correct usage info when exec 'obs_serverstatus' withoutotherpargs

when we exec 'obs_serverstatus' command without other pargs,
the return usage message is 'Usage: bs_serverstatus [--top] <statusfile>'.
However, the 'bs_serverstatus' is different with input 'obs_serverstatus'.

Here, we change the usage info to 'Usage: obs_serverstatus [--top] <statusfile>'.

Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
This commit is contained in:
Zhiqiang Liu 2020-09-18 15:26:43 +08:00
parent 0f767d6ac3
commit 659d4b4730
2 changed files with 39 additions and 1 deletions

View File

@ -0,0 +1,32 @@
From 7da5dc099e9d4f170e35c87e2f2dd7a0a38180b3 Mon Sep 17 00:00:00 2001
From: Zhiqiang Liu <liuzhiqiang26@huawei.com>
Date: Fri, 18 Sep 2020 15:17:38 +0800
Subject: [PATCH] obs_server: fix usage info
when we exec 'obs_serverstatus' command without other pargs,
the return usage message is 'Usage: bs_serverstatus [--top] <statusfile>'.
However, the 'bs_serverstatus' is different with input 'obs_serverstatus'.
Here, we change the usage info to 'Usage: obs_serverstatus [--top] <statusfile>'.
Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
---
src/backend/bs_serverstatus | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/backend/bs_serverstatus b/src/backend/bs_serverstatus
index 0ec50b3..139f15e 100755
--- a/src/backend/bs_serverstatus
+++ b/src/backend/bs_serverstatus
@@ -44,7 +44,7 @@ while (@ARGV) {
last;
}
}
-die("Usage: bs_serverstatus [--top] <statusfile>\n") unless $ARGV[0];
+die("Usage: obs_serverstatus [--top] <statusfile>\n") unless $ARGV[0];
$| = 1;
print "\033[H\033[J" if $top;
my $nl = "\n";
--
1.8.3.1

View File

@ -2,12 +2,15 @@
Name: obs-server
Version: 2.10.1
Release: lp151.23.3
Release: lp151.23.4
Summary: The Open Build Service -- Server Component
License: GPL-2.0-only OR GPL-3.0-only
URL: http://www.openbuildservice.org
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: open-build-service-%version.tar.xz
Patch1: 0001-obs_server-fix-usage-info.patch
BuildArch: noarch
BuildRequires: python-devel, /usr/bin/xmllint, openssl, perl-BSSolv >= 0.36, perl-Compress-Zlib, xz
@ -473,6 +476,9 @@ usermod -a -G docker obsservicerun
%{_sbindir}/rcobsstoragesetup
%changelog
* Fri Sep 18 2020 Zhiqiang Liu <liuzhiqiang26@huawei.com> - 2.10.1-lp151.23.4
- correct usage info when exec 'obs_serverstatus' without other pargs
* Sun Mar 15 2020 hy-euler <eulerstoragemt@huawei.com> - 2.10.1-lp151.23.3
- delete the Provides of obs-cloud-uploader which provides the tools for upload images to the cloud