From 72f66b808dbfc1e6f4109cb0a76b6dc73c77ce84 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Jan 19 2022 21:15:09 +0000 Subject: import dnf-plugins-core-4.0.21-8.el8 --- diff --git a/SOURCES/0010-needs-restarting-Fix-wrong-boot-time-RhBug1960437.patch b/SOURCES/0010-needs-restarting-Fix-wrong-boot-time-RhBug1960437.patch new file mode 100644 index 0000000..3090d60 --- /dev/null +++ b/SOURCES/0010-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 faf7636..52aa582 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: 7%{?dist} +Release: 8%{?dist} Summary: Core Plugins for DNF License: GPLv2+ URL: https://github.com/rpm-software-management/dnf-plugins-core @@ -48,6 +48,7 @@ Patch6: 0006-copr-migrate-all-calls-to-APIv3.patch Patch7: 0007-groups-manager-More-benevolent-resolving-of-packages-RhBug2013633.patch Patch8: 0008-versionlock-fix-multi-pkg-lock-RhBug2013324.patch Patch9: 0009-Update-documentation-for-adding-specific-version-RhBug2013332.patch +Patch10: 0010-needs-restarting-Fix-wrong-boot-time-RhBug1960437.patch BuildArch: noarch BuildRequires: cmake @@ -771,6 +772,9 @@ ln -sf %{_mandir}/man1/%{yum_utils_subpackage_name}.1.gz %{buildroot}%{_mandir}/ %endif %changelog +* Thu Jan 06 2022 Pavla Kratochvilova - 4.0.21-8 +- [needs-restarting] Fix wrong boot time (RhBug:1960437,2022389) + * Wed Dec 1 2021 Pavla Kratochvilova - 4.0.21-7 - [groups-manager] Use full NEVRA for matching packages instead of only name (RhBug:2013633) - [versionlock] Fix: Multiple package-name-spec arguments don't lock (RhBug:2013324)