Create rpmmacros dir before copying.

pull/57/head
Jussi Pakkanen 10 years ago
parent 4360e362da
commit a084a8ec3e
  1. 1
      install_meson.py

@ -110,5 +110,6 @@ shutil.copytree('modules', module_dir)
if os.path.exists(os.path.join('/usr', rpmmacros_dir)):
print('Installing RPM macros to %s.' % rpmmacros_dir)
outfilename = os.path.join(rpmmacros_dir, 'macros.meson')
os.makedirs(rpmmacros_dir, exist_ok=True)
shutil.copyfile('macros.meson', outfilename)
shutil.copystat('macros.meson', outfilename)

Loading…
Cancel
Save