Do not make symlinks if dest files exist.

This commit is contained in:
David Cantrell 2008-10-08 14:58:56 -10:00
parent 6ec042a9ab
commit 5f64fd8fd1

View File

@ -310,8 +310,9 @@ def scrubInstRoot(destdir=None, libdir='lib', arch=None):
# fix up some links for man page related stuff
for file in ['nroff', 'groff', 'iconv', 'geqn', 'gtbl', 'gpic', 'grefer']:
src = os.path.join('mnt', 'sysimage', 'usr', 'bin', file)
dest = os.path.join(destdir, 'usr', 'bin', file)
os.symlink(src, dest)
dst = os.path.join(destdir, 'usr', 'bin', file)
if not os.path.isfile(dst):
os.symlink(src, dst)
# install anaconda stub programs as instroot programs
for subdir in ['lib', 'firmware']: