Skip to content

Commit

Permalink
Avoid a long obsolete rpm API use
Browse files Browse the repository at this point in the history
dsFromHeader() and dsOfHeader() header methods were removed in rpm 4.19,
passing header to rpm.ds constructor is the preferred way since
rpm 4.8 / RHEL 6.
  • Loading branch information
pmatilai authored and jan-kolarik committed May 9, 2023
1 parent 6cd5a10 commit 3be0b79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/builddep.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def _src_deps(self, src_fn):
os.close(fd)
raise dnf.exceptions.Error(e)
os.close(fd)
ds = h.dsFromHeader('requirename')
ds = rpm.ds(h, 'requirename')
done = True
for dep in ds:
reldep_str = self._rpm_dep2reldep_str(dep)
Expand Down

0 comments on commit 3be0b79

Please sign in to comment.