Fixed AR-1525: Version root doesn't have the required aspect.

The patch execution evaluation is done again if the patch was not executed - even if it was considered for execution before.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6038 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2007-06-20 18:50:25 +00:00
parent 5d6375e0a7
commit ecd81e37a2

View File

@@ -201,7 +201,8 @@ public class PatchServiceImpl implements PatchService
{
// get the patch from the DAO
AppliedPatch appliedPatch = patchDaoService.getAppliedPatch(patch.getId());
if (appliedPatch != null && appliedPatch.getSucceeded())
// We bypass the patch if it was executed successfully
if (appliedPatch != null && appliedPatch.getWasExecuted() && appliedPatch.getSucceeded())
{
// it has already been applied
if (logger.isDebugEnabled())