adapt to changes in dnf5

This commit is contained in:
Fabio Valentini 2025-01-09 16:29:59 +01:00
commit 993f534ca4
Signed by: decathorpe
GPG key ID: 5AC5F572E5D410AF
2 changed files with 2 additions and 3 deletions

View file

@ -6,7 +6,7 @@ If it is not, it prints the list of dependent packages.
## Requirements
- python3
- DNF
- DNF5 as dnf
- internet connection
## Usage

View file

@ -54,7 +54,7 @@ def get_b2s_mapping() -> dict[str, str]:
"--repofrompath", "kojipkgs-source,https://kojipkgs.fedoraproject.org/repos/rawhide/latest/src/",
"repoquery",
"--arch", "i686,noarch",
"--queryformat", "%{name} %{source_name}",
"--queryformat", "%{name} %{source_name}\n",
]
ret = subprocess.check_output(cmd, text=True)
@ -105,7 +105,6 @@ def get_requires(package: str) -> tuple[list[str], list[str]]:
"--repofrompath", "kojipkgs-source,https://kojipkgs.fedoraproject.org/repos/rawhide/latest/src/",
"repoquery",
"--arch", "src,i686,noarch",
"--alldeps",
"--whatrequires", package
]