Only make directories if they don't exist.

This commit is contained in:
David Cantrell 2008-10-08 15:22:39 -10:00
parent 5f64fd8fd1
commit e5383426f8

View File

@ -335,7 +335,9 @@ def scrubInstRoot(destdir=None, libdir='lib', arch=None):
# copy in boot loader files
bootpath = os.path.join(destdir, 'usr', 'lib', 'anaconda-runtime', 'boot')
if not os.path.isdir(bootpath):
os.makedirs(bootpath)
if arch == 'i386' or arch == 'x86_64':
for bootfile in os.listdir(os.path.join(destdir, 'boot')):
if bootfile.startswith('memtest'):