Create rpmmacros dir before copying.

This commit is contained in:
Jussi Pakkanen 2015-03-21 14:55:42 +02:00
parent 4360e362da
commit a084a8ec3e
1 changed files with 1 additions and 0 deletions

View File

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