-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
rpm.ds(hdr)
instead of now removed hdr.dsFromHeader()
- Loading branch information
1 parent
92ef8cf
commit c15bd39
Showing
2 changed files
with
8 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
The `--installdeps foo.spec` feature is implemented using the RPM Python API. | ||
Previously we used the method `hdr.dsFromHeader()` to get the list of | ||
`BuildRequires`. This method has been removed from the Python RPM API (rpm | ||
v4.19) in favor of the long-enough existing `rpm.ds(hdr, ...)` method. Mock | ||
[has started using `rpm.ds()` API call][PR#1223] to fix the [`AttributeError: | ||
'rpm.hdr' object has no attribute 'dsFromHeader'`][issue#1203] traceback on | ||
newer systems (e.g. Fedora 40+). |