Merge branch 'i9c' with version 4.7.1-3 into 'i9'

i9 changed/i9/sos-4.7.1-3.el9.inferit
Sergey Cherevko 6 months ago
commit 211af05c2d
Signed by: scherevko
GPG Key ID: D87CBBC16D2E4A72

2
.gitignore vendored

@ -1,2 +1,2 @@
SOURCES/sos-4.7.0.tar.gz
SOURCES/sos-4.7.1.tar.gz
SOURCES/sos-audit-0.3.tgz

@ -1,2 +1,2 @@
7d1629848263be2d613983fb15cd418dccdf1c76 SOURCES/sos-4.7.0.tar.gz
9ced981872d308e13c5dc47fee21071592ceefc2 SOURCES/sos-4.7.1.tar.gz
9d478b9f0085da9178af103078bbf2fd77b0175a SOURCES/sos-audit-0.3.tgz

@ -0,0 +1,30 @@
From a0c2586e230c9600d3d3f70ab89c9f6eb52ed3ed Mon Sep 17 00:00:00 2001
From: Pavel Moravec <pmoravec@redhat.com>
Date: Tue, 23 Apr 2024 11:00:11 +0200
Subject: [PATCH] [archive] Fix get_archive_root after files reordering
Commit d5d8c21 reordered files in the archive, such that the first
member is not the archive root directory further more. Let change the
get_archive_root method accordingly to prevent self.archive_root being
empty.
Resolves: #3616
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
---
sos/cleaner/archives/__init__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sos/cleaner/archives/__init__.py b/sos/cleaner/archives/__init__.py
index f7c5eb587..0fa1ef43f 100644
--- a/sos/cleaner/archives/__init__.py
+++ b/sos/cleaner/archives/__init__.py
@@ -104,7 +104,7 @@ def get_archive_root(self):
if toplevel.isdir():
return toplevel.name
else:
- return os.sep
+ return os.path.dirname(toplevel.name) or os.sep
return os.path.abspath(self.archive_path)
def report_msg(self, msg):

@ -4,8 +4,8 @@
Summary: A set of tools to gather troubleshooting information from a system
Name: sos
Version: 4.7.0
Release: 1%{?dist}.inferit
Version: 4.7.1
Release: 3%{?dist}.inferit
Group: Applications/System
Source0: https://github.com/sosreport/sos/archive/%{version}/sos-%{version}.tar.gz
Source1: sos-audit-%{auditversion}.tgz
@ -22,6 +22,7 @@ Recommends: python3-pexpect
Recommends: python3-pyyaml
Conflicts: vdsm < 4.40
Obsoletes: sos-collector <= 1.9
Patch1: sos-RHEL-35945-sos-clean-on-archive.patch
# MSVSphere patches
Patch1001: 0001-Add-MSVSphere-policy-implementation.patch
@ -35,10 +36,11 @@ support technicians and developers.
%prep
%setup -qn %{name}-%{version}
%setup -T -D -a1 -q
%patch1 -p1
%patch1001 -p1
%build
%py3_build
%py3_build
%install
%py3_install '--install-scripts=%{_sbindir}'
@ -108,6 +110,21 @@ of the system. Currently storage and filesystem commands are audited.
%changelog
* Mon Jun 24 2024 Sergey Cherevko <s.cherevko@msvsphere-os.ru> - 4.7.1-3.inferit
- Update to 4.7.1-3
* Thu May 09 2024 Pavel Moravec <pmoravec@redhat.com> = 4.7.1-3
- [archive] Fix get_archive_root after files reordering
Resolves: RHEL-35945
* Mon Apr 08 2024 Jan Jansky <jjansky@redhat.com> = 4.7.1-1
- rebase to upstream 4.7.1
Resolves: RHEL-32106
* Tue Feb 20 2024 Jan Jansky <jjansky@redhat.com> = 4.7.0-1
- rebase to upstream 4.7.0
Resolves: RHEL-26115
* Tue Feb 20 2024 Jan Jansky <jjansky@redhat.com> = 4.7.0-1
- rebase to upstream 4.7.0
Resolves: RHEL-26115
@ -157,13 +174,10 @@ of the system. Currently storage and filesystem commands are audited.
- Rebase on upstream 4.5.5
Resolves: bz2217943
* Tue May 31 2023 Pavel Moravec <pmoravec@redhat.com> = 4.5.4-1
* Wed May 31 2023 Pavel Moravec <pmoravec@redhat.com> = 4.5.4-1
- [specfile] add runtime requirement to python3-setuptools
Resolves: bz2207776
* Fri May 05 2023 Sergey Cherevko <s.cherevko@msvsphere.ru> - 4.5.3-1.inferit
- Rebuilt for MSVSphere 9.2
* Thu May 04 2023 Jan Jansky <jjansky@redhat.com> = 4.5.3-1
- [unpackaged] Print unpackaged symlinks instead of targets
Resolves: bz2169684
@ -172,10 +186,6 @@ of the system. Currently storage and filesystem commands are audited.
- [powerpc]: To collect lparnumascore logs
Resolves: bz2177984
* Sat Apr 01 2023 Eugene Zamriy <ezamriy@msvsphere.ru> = 4.3-5.inferit
- Added MSVSphere policy implementation
- Rebuilt for MSVSphere 9.1
* Wed Mar 15 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 4.3-5
- Rebuilt for MSVSphere 9.1.

Loading…
Cancel
Save