autoconf.py: fix autoconf invocation
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Anna “CyberTailor” 2023-07-16 20:51:39 +05:00
parent 6b6806a1ed
commit 64cac1080a
Signed by: CyberTaIlor
GPG Key ID: E7B76EDC50864BB1
1 changed files with 3 additions and 8 deletions

View File

@ -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