fix(packaging): prevent duplicate RPM in release by cleaning rpmbuild staging tree
Build and Publish Release / Build Packages and Publish (push) Successful in 42s

This commit is contained in:
soda64 committed 2026-10-09 20:38:21 +02:00
1 parent c89aa3d1c7
commit 7972834e90
2 files changed
+6 -3

No files matched your search

+3
View File
@@ -511,6 +511,9 @@ def build_rpm_package(repo_root: str, out_dir: str, version: str) -> str:
if not rpms_found:
raise RuntimeError("rpmbuild succeeded but no .rpm file was found in RPMS")
# Clean up temporary rpmbuild staging tree so out_dir contains only final artifacts
shutil.rmtree(rpmbuild_dir, ignore_errors=True)
print(f"[SUCCESS] Built RPM package: {rpms_found[0]} ({os.path.getsize(rpms_found[0])} bytes)")
return rpms_found[0]