check existence of maven symlink
Fixes: https://pagure.io/koji/issue/1593
This commit is contained in:
parent
d412eb00e0
commit
8d4d74fca0
1 changed files with 2 additions and 1 deletions
|
|
@ -1605,7 +1605,8 @@ class BuildMavenTask(BaseBuildTask):
|
|||
buildroot.expire()
|
||||
raise koji.BuildrootError('error installing packages, %s' % buildroot._mockResult(rv, logfile='mock_output.log'))
|
||||
|
||||
if not os.path.exists('%s/usr/bin/mvn' % buildroot.rootdir()):
|
||||
# existence of symlink should be sufficient
|
||||
if not os.path.lexists('%s/usr/bin/mvn' % buildroot.rootdir()):
|
||||
raise koji.BuildError('/usr/bin/mvn was not found in the buildroot')
|
||||
|
||||
scmdir = '%s/maven/build' % buildroot.rootdir()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue