Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attempt to parse an abridged version of the spec file first, i.e. one cut off at the `%prep` line, which should still contain everything needed to parse epoch, version and autorelease flags. Only if that fails, attempt to parse the full spec file. This speeds up things tremendously in the case of spec files using macros which run subprocesses, such as certain Python macros. Even spec files not affected by this are parsed (slightly) faster if shortened accordingly. Thanks to Miro Hrončok and Ben Beasley for analyzing the issue and suggesting this optimization. Fixes: fedora-infra#22 Signed-off-by: Nils Philippsen <nils@redhat.com>
- Loading branch information