From 448916c1936988d7ff34cc25492ebdcb07b08a25 Mon Sep 17 00:00:00 2001 From: William Douglas Date: Wed, 20 Oct 2021 16:00:27 -0700 Subject: [PATCH] Run pypi dependency version override fix over the buildroot too In cases where the requires.txt is generated, the dependency version override will need to be run over the buildroot and not just the source root. Signed-off-by: William Douglas --- autospec/specfiles.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autospec/specfiles.py b/autospec/specfiles.py index fdc9a04..1c5beb3 100644 --- a/autospec/specfiles.py +++ b/autospec/specfiles.py @@ -1387,6 +1387,8 @@ class Specfile(object): self._write_strip("python3 -tt setup.py build install --root=%{buildroot}") if self.config.subdir: self._write_strip("popd") + for module in self.config.pypi_overrides: + self._write_strip(f"pypi-dep-fix.py %{{buildroot}} {module}") self._write_strip("echo ----[ mark ]----") self._write_strip("cat %{buildroot}/usr/lib/python3*/site-packages/*/requires.txt || :") self._write_strip("echo ----[ mark ]----")