From 74e445f5847c0bc818845945c96f7a7cda8ca4be Mon Sep 17 00:00:00 2001 From: Michal Domonkos Date: Thu, 18 May 2023 15:18:29 +0200 Subject: [PATCH] Add upper version bound for setInterruptSafety() This function became a no-op [1] in RPM 4.18 where it was also deprecated [2], and is completely gone in RPM 4.19 [3]. Adjust the version check accordingly. Note that the function itself seems to have no effect in RPM 4.16 already where the Berkeley DB backend was swapped for sqlite, but don't risk breaking stuff here and just keep the call in place for those older RPM versions. More info here: [1] https://github.com/rpm-software-management/rpm/commit/ baeb71141744bb0db6bd72c580bfaf929b7b4fb2 [2] https://github.com/rpm-software-management/rpm/pull/1994 [3] https://github.com/rpm-software-management/rpm/pull/1992 --- rpmconf/rpmconf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpmconf/rpmconf.py b/rpmconf/rpmconf.py index dfec6d6..8d54d67 100755 --- a/rpmconf/rpmconf.py +++ b/rpmconf/rpmconf.py @@ -43,7 +43,7 @@ __version__ = "1.0.60" -if rpm.__version__ > "4.13.0": +if rpm.__version__ > "4.13.0" and rpm.__version__ < "4.18.0": rpm.setInterruptSafety(False)