rpmrebuild: fix --comment-missing=n does not work

(cherry picked from commit c5614a2697248b86685d28512bb8a69740720753)
This commit is contained in:
xujing 2022-11-08 16:40:48 +08:00 committed by openeuler-sync-bot
parent 5f44557786
commit 6ece6a2b01
2 changed files with 33 additions and 1 deletions

View File

@ -0,0 +1,25 @@
From 9605c9e3d9b45b8e095f4e2915696c7c46401535 Mon Sep 17 00:00:00 2001
From: xujing <xujing125@huawei.com>
Date: Tue, 8 Nov 2022 10:52:14 +0800
Subject: [PATCH] fix --comment-missing=n does not work
---
rpmrebuild_parser.src | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rpmrebuild_parser.src b/rpmrebuild_parser.src
index cbdb516..1b1b8be 100755
--- a/rpmrebuild_parser.src
+++ b/rpmrebuild_parser.src
@@ -1062,7 +1062,7 @@ function ProcessLongOptions
;;
*)
- RPMREBUILD_COMMENT_MISSING="yes"
+ RPMREBUILD_COMMENT_MISSING="no"
;;
esac
;;
--
2.27.0

View File

@ -1,6 +1,6 @@
Name: rpmrebuild
Version: 2.16
Release: 6
Release: 7
Summary: A tool to build a rpm file from the rpm database
License: GPLv2+
URL: http://rpmrebuild.sourceforge.net
@ -11,6 +11,7 @@ Patch9001: openEuler-fix-the-CreateBuildRoot-error-when-using-rpmrebuild-co
Patch9002: fix-k-may-not-keep-uid-or-gid.patch
Patch9003: fix-spelling-errors-that-could-mislead-users.patch
Patch9004: fix-cap-from-fs-does-not-work.patch
Patch9005: fix-comment-missing-n-does-not-work.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
@ -62,6 +63,12 @@ rm -rf $RPM_BUILD_ROOT%{_mandir}/fr_FR.UTF-8/man1/
%{_mandir}/fr/man1/*.gz
%changelog
* Tue Nov 8 2022 xujing <xujing125@huawei.com> - 2.16-7
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC:fix --comment-missing=n does not work
* Tue Nov 8 2022 xujing <xujing125@huawei.com> - 2.16-6
- Type:bugfix
- CVE:NA