From 931a995d3988b237fb5426ea14fdb078026023a6 Mon Sep 17 00:00:00 2001 From: Jakub Kadlcik Date: Thu, 10 Aug 2023 19:26:37 +0200 Subject: [PATCH] rpmbuild: use values with evaluated macros See https://github.com/fedora-copr/copr/issues/2848#issuecomment-1671738285 --- rpmbuild/copr_rpmbuild/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpmbuild/copr_rpmbuild/helpers.py b/rpmbuild/copr_rpmbuild/helpers.py index 8ecddd7f3..c1babc00d 100644 --- a/rpmbuild/copr_rpmbuild/helpers.py +++ b/rpmbuild/copr_rpmbuild/helpers.py @@ -406,7 +406,7 @@ def __init__(self, path): self.tags = self.spec.tags(self.spec.parsed_sections.package).content def __getattr__(self, name): - value = getattr(self.spec, name) + value = getattr(self.tags, name).value if name == "epoch" and value is not None: return int(value) return value