Skip to content

Commit

Permalink
Add upper version bound for setInterruptSafety()
Browse files Browse the repository at this point in the history
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] rpm-software-management/rpm#1994
[3] rpm-software-management/rpm#1992
  • Loading branch information
dmnks authored and xsuchy committed Jul 7, 2023
1 parent 9190830 commit 57d892d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpmconf/rpmconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit 57d892d

Please sign in to comment.