only create the common/ symlink if there isn't already a common/ directory
This commit is contained in:
parent
0ad90f7839
commit
8e67403749
1 changed files with 2 additions and 1 deletions
|
|
@ -2514,7 +2514,8 @@ class SCM(object):
|
|||
if log_output(common_checkout_cmd[0], common_checkout_cmd, logfile, uploadpath, cwd=scmdir, logerror=1, append=1, env=env):
|
||||
raise koji.BuildError, 'Error running %s checkout command "%s", see %s for details' % \
|
||||
(self.scmtype, ' '.join(common_checkout_cmd), os.path.basename(logfile))
|
||||
os.symlink('%s/common' % scmdir, '%s/../common' % sourcedir)
|
||||
if not os.path.exists('%s/../common' % sourcedir):
|
||||
os.symlink('%s/common' % scmdir, '%s/../common' % sourcedir)
|
||||
|
||||
return sourcedir
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue