@@ -110,7 +110,7 @@ private ExtendedStatus getMinorStatus(Component comp, CachedStatuses cache, IPro
110110 status = BuildStatus .LOCK ;
111111 } else if (hasMDepsNotInDONEStatus (rb .getMDeps (), cache )) {
112112 status = BuildStatus .BUILD_MDEPS ;
113- } else if (!areMDepsPatchesActual ( comp , repo , rb .getMDeps (), cache )) {
113+ } else if (!areMDepsPatchesActualForMinor ( rb .getMDeps (), cache )) {
114114 status = BuildStatus .ACTUALIZE_PATCHES ;
115115 } else {
116116 status = BuildStatus .BUILD ;
@@ -156,7 +156,7 @@ private ExtendedStatus getPatchStatus(Component comp, CachedStatuses cache, IPro
156156
157157 if (hasMDepsNotInDONEStatus (rb .getMDeps (), cache )) {
158158 buildStatus = BuildStatus .BUILD_MDEPS ;
159- } else if (!areMDepsPatchesActual (comp , repo , rb .getMDeps (), cache )) {
159+ } else if (!areMDepsPatchesActualForPatch (comp , repo , rb .getMDeps (), cache )) {
160160 buildStatus = BuildStatus .ACTUALIZE_PATCHES ;
161161 } else if (reportDuration (() -> noValueableCommitsAfterLastTag (repo , rb ), "is release branch modified check" , comp , progress )) {
162162 buildStatus = BuildStatus .DONE ;
@@ -221,7 +221,21 @@ private <T> T walkOnCommits(VCSRepository repo, ReleaseBranchPatch rb, Function<
221221 return null ;
222222 }
223223
224- private boolean areMDepsPatchesActual (Component rootComp , VCSRepository repo , List <Component > mDeps , CachedStatuses cache ) {
224+ private boolean areMDepsPatchesActualForMinor (List <Component > mDeps , CachedStatuses cache ) {
225+ for (Component mDep : mDeps ) {
226+ String url = repoFactory .getUrl (mDep );
227+ Version nextMDepVersion = cache .get (url ).getNextVersion ();
228+ if (!nextMDepVersion .equals (mDep .getVersion ().toNextPatch ())) {
229+ DelayedTagsFile mdf = new DelayedTagsFile ();
230+ if (!(nextMDepVersion .getPatch ().equals (Constants .ZERO_PATCH ) && mdf .getDelayedTagByUrl (url ) != null )) {
231+ return false ;
232+ }
233+ }
234+ }
235+ return true ;
236+ }
237+
238+ private boolean areMDepsPatchesActualForPatch (Component rootComp , VCSRepository repo , List <Component > mDeps , CachedStatuses cache ) {
225239 for (Component mDep : mDeps ) {
226240 String url = repoFactory .getUrl (mDep );
227241 Version nextVersion = cache .get (url ).getNextVersion ();
@@ -287,7 +301,6 @@ private Boolean isNeedToFork(Component comp, ReleaseBranchCurrent rb, CachedStat
287301 return true ;
288302 }
289303
290-
291304 if (rb .getVersion ().getPatch ().equals (Constants .ZERO_PATCH )) {
292305 if (!hasDelayedTag ) {
293306 return false ;
0 commit comments