From 64cac1080a07420b925b1f16c45cfda14e78509f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anna=20=E2=80=9CCyberTailor=E2=80=9D?= Date: Sun, 16 Jul 2023 20:51:39 +0500 Subject: [PATCH] autoconf.py: fix autoconf invocation --- gentle/generators/autoconf.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/gentle/generators/autoconf.py b/gentle/generators/autoconf.py index 107ce83..d8776d8 100644 --- a/gentle/generators/autoconf.py +++ b/gentle/generators/autoconf.py @@ -34,15 +34,10 @@ class AutoconfGenerator(AbstractGenerator): self.autoconf = shutil.which("autoconf") - def generate_conf_sh(self) -> None: - if self.conf_sh.is_file(): - return - - with self.srcdir: - subprocess.run([str(self.autoconf)], check=False) - def update_metadata_xml(self, mxml: MetadataXML) -> None: - self.generate_conf_sh() + if not self.conf_sh.is_file() and self.conf_ac.is_file(): + subprocess.run([str(self.autoconf)], cwd=self.srcdir, check=False) + if not self.conf_sh.is_file(): return