diff --git a/tools/venv-rpm b/tools/venv-rpm index 11c205c..f1fef03 100755 --- a/tools/venv-rpm +++ b/tools/venv-rpm @@ -59,8 +59,8 @@ def main(): f.write(SPEC.format(revision=build_id, date=date)) shutil.rmtree("/root/rpmbuild", ignore_errors=True) run(["rpmbuild", "--bb", spec], check=True) - rpms = Path("/root/rpmbuild/RPMS/noarch") - file = Path(list(rpms.glob("python3-pyaptly-*.rpm"))[0]) + rpms = Path("/root/rpmbuild/RPMS/") + file = Path(list(rpms.glob("*/python3-pyaptly-*.rpm"))[0]) shutil.copy2(file, dist)