Skip to content

Commit

Permalink
This API is long gone
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
  • Loading branch information
lemenkov committed Apr 19, 2024
1 parent 58b3611 commit e1829de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion erlang-find-requires.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def inspect_so_library(library, export_name, dependency_name):
ts = rpm.TransactionSet()
mi = ts.dbMatch('providename', dependency_name)
h = next(mi)
ds = dict(map(lambda x: x[0].split(" ")[1::2], h.dsFromHeader('providename')))
ds = dict(map(lambda x: x[0].split(" ")[1::2], rpm.ds(h, "providename")))
if dependency_name in ds:
f.close()
return "%s = %s" % (dependency_name, ds[dependency_name])
Expand Down
2 changes: 1 addition & 1 deletion testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def test_check_for_target_cpu_macro(self):
ts = rpm.TransactionSet()
mi = ts.dbMatch('name', "erlang-erts")
h = next(mi)
ds = dict(map(lambda x: x[0].split(" ")[1::2], h.dsFromHeader('providename')))
ds = dict(map(lambda x: x[0].split(" ")[1::2], rpm.ds(h, "providename")))
ErlDrvDep = "erlang(erl_drv_version) = %s" % ds['erlang(erl_drv_version)']
ErlNifDep = "erlang(erl_nif_version) = %s" % ds['erlang(erl_nif_version)']

Expand Down

0 comments on commit e1829de

Please sign in to comment.