From aeb68ad128e8fe4f0527f638623333010df79ea2 Mon Sep 17 00:00:00 2001 From: Elvis Pranskevichus Date: Mon, 14 Oct 2024 13:44:47 -0700 Subject: [PATCH] rpm: Fix multi-source package builds --- metapkg/targets/rpm/build.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/metapkg/targets/rpm/build.py b/metapkg/targets/rpm/build.py index b001efb..295d20e 100644 --- a/metapkg/targets/rpm/build.py +++ b/metapkg/targets/rpm/build.py @@ -439,9 +439,11 @@ def _get_provides_spec(self, provides: list[tuple[str, str]]) -> str: def _get_source_spec(self) -> str: lines = [] - for i, tarballs in enumerate(self._tarballs.values()): + i = 0 + for _, tarballs in enumerate(self._tarballs.values()): for _, tarball in tarballs: lines.append(f"Source{i}: {tarball.name}") + i += 1 return "\n".join(lines)