From fdd456151813358257fb62599ce1985f9ca0ad46 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 1 Feb 2022 15:14:17 -0500 Subject: [PATCH] import dnf-plugins-core-4.0.21-4.el8_5 --- ...ing-Fix-wrong-boot-time-RhBug1960437.patch | 25 +++++++++++++++++++ SPECS/dnf-plugins-core.spec | 6 ++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 SOURCES/0005-needs-restarting-Fix-wrong-boot-time-RhBug1960437.patch diff --git a/SOURCES/0005-needs-restarting-Fix-wrong-boot-time-RhBug1960437.patch b/SOURCES/0005-needs-restarting-Fix-wrong-boot-time-RhBug1960437.patch new file mode 100644 index 0000000..3090d60 --- /dev/null +++ b/SOURCES/0005-needs-restarting-Fix-wrong-boot-time-RhBug1960437.patch @@ -0,0 +1,25 @@ +From dc13ed6bab62a38ef74b00376e2ba05c82115e47 Mon Sep 17 00:00:00 2001 +From: Nicola Sella +Date: Thu, 8 Jul 2021 15:54:21 +0200 +Subject: [PATCH] [needs-restarting] Fix wrong boot time (RhBug:1960437) + +--- + plugins/needs_restarting.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/plugins/needs_restarting.py b/plugins/needs_restarting.py +index 1fedb73..91dbe66 100644 +--- a/plugins/needs_restarting.py ++++ b/plugins/needs_restarting.py +@@ -199,7 +199,7 @@ class ProcessStart(object): + + @staticmethod + def get_boot_time(): +- return int(os.stat('/proc/1/cmdline').st_mtime) ++ return int(os.stat('/proc/1').st_mtime) + + @staticmethod + def get_sc_clk_tck(): +-- +libgit2 1.1.0 + diff --git a/SPECS/dnf-plugins-core.spec b/SPECS/dnf-plugins-core.spec index 393a80b..e33c9b2 100644 --- a/SPECS/dnf-plugins-core.spec +++ b/SPECS/dnf-plugins-core.spec @@ -34,7 +34,7 @@ Name: dnf-plugins-core Version: 4.0.21 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Core Plugins for DNF License: GPLv2+ URL: https://github.com/rpm-software-management/dnf-plugins-core @@ -43,6 +43,7 @@ Patch1: 0001-versionlock-Do-not-exclude-locked-obsoleters-RhBug1957280.p Patch2: 0002-repomanage-Allow-running-only-with-metadata.patch Patch3: 0003-repomanage-Enhance-repomanage-documentation-RhBug1898293.patch Patch4: 0004-Update-translations.patch +Patch5: 0005-needs-restarting-Fix-wrong-boot-time-RhBug1960437.patch BuildArch: noarch BuildRequires: cmake @@ -766,6 +767,9 @@ ln -sf %{_mandir}/man1/%{yum_utils_subpackage_name}.1.gz %{buildroot}%{_mandir}/ %endif %changelog +* Thu Jan 06 2022 Pavla Kratochvilova - 4.0.21-4 +- [needs-restarting] Fix wrong boot time (RhBug:1960437,2037008) + * Mon Sep 13 2021 Marek Blaha - 4.0.21-3 - Translations update (RhBug:1961633)