sosreport: 4.9.1 -> 4.11.1 (#517798)

This commit is contained in:
Peder Bergebakken Sundt
2026-05-08 17:14:41 +00:00
committed by GitHub
2 changed files with 17 additions and 2 deletions
@@ -0,0 +1,9 @@
--- a/sos/policies/distros/__init__.py
+++ b/sos/policies/distros/__init__.py
@@ -128,6 +128,8 @@
return True
# next check os-release for a NAME or ID value we expect
+ if not os.path.exists(OS_RELEASE):
+ return False
with open(OS_RELEASE, "r", encoding='utf-8') as f:
return _check_release(f.read())
+8 -2
View File
@@ -7,18 +7,22 @@
python3Packages.buildPythonPackage rec {
pname = "sosreport";
version = "4.9.1";
version = "4.11.1";
pyproject = true;
src = fetchFromGitHub {
owner = "sosreport";
repo = "sos";
tag = version;
hash = "sha256-97S8b4PfjUN8uzvp01PGCLs4J3CbwpJsgBKtY8kI0HE=";
hash = "sha256-HKGGA9SHCJjAaCPduPx1plUJ10nt3JYAr10J/69Sm/0=";
};
build-system = [ python3Packages.setuptools ];
patches = [
./os-release.patch
];
nativeBuildInputs = [
gettext
];
@@ -26,6 +30,7 @@ python3Packages.buildPythonPackage rec {
dependencies = with python3Packages; [
packaging
pexpect
python-magic
pyyaml
];
@@ -43,5 +48,6 @@ python3Packages.buildPythonPackage rec {
homepage = "https://github.com/sosreport/sos";
license = lib.licenses.gpl2Plus;
maintainers = [ ];
platforms = lib.platforms.linux;
};
}