From 743c83c4b46ebaa66c58010629307ae42344db4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jelmer=20Vernoo=C4=B3?= Date: Mon, 3 May 2021 17:24:19 +0100 Subject: [PATCH] Dzil authordeps requires dist.ini. --- ognibuild/buildsystem.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ognibuild/buildsystem.py b/ognibuild/buildsystem.py index 1f4989b..cc86382 100644 --- a/ognibuild/buildsystem.py +++ b/ognibuild/buildsystem.py @@ -999,9 +999,10 @@ class DistZilla(BuildSystem): return cls(os.path.join(path, "dist.ini")) def get_declared_dependencies(self, session, fixers=None): - lines = run_with_build_fixers(session, ["dzil", "authordeps"], fixers) - for entry in lines: - yield "build", PerlModuleRequirement(entry.strip()) + if os.path.exists(os.path.join(self.path, "dist.ini")): + lines = run_with_build_fixers(session, ["dzil", "authordeps"], fixers) + for entry in lines: + yield "build", PerlModuleRequirement(entry.strip()) if os.path.exists(os.path.join(os.path.dirname(self.path), "cpanfile")): yield from _declared_deps_from_cpanfile(session, fixers)