aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mesonbuild/minstall.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/mesonbuild/minstall.py b/mesonbuild/minstall.py
index a9c561f..0d397b2 100644
--- a/mesonbuild/minstall.py
+++ b/mesonbuild/minstall.py
@@ -403,13 +403,15 @@ class Installer:
append_to_log(self.lf, f'# Preserving old file {to_file}\n')
self.preserved_file_count += 1
return False
+ self.log(f'Installing {from_file} to {outdir}')
self.remove(to_file)
- elif makedirs:
- # Unpack tuple
- dirmaker, outdir = makedirs
- # Create dirs if needed
- dirmaker.makedirs(outdir, exist_ok=True)
- self.log(f'Installing {from_file} to {outdir}')
+ else:
+ self.log(f'Installing {from_file} to {outdir}')
+ if makedirs:
+ # Unpack tuple
+ dirmaker, outdir = makedirs
+ # Create dirs if needed
+ dirmaker.makedirs(outdir, exist_ok=True)
if os.path.islink(from_file):
if not os.path.exists(from_file):
# Dangling symlink. Replicate as is.