| Line 285... |
Line 285... |
| 285 |
If parRtag_id > 0 Then
|
285 |
If parRtag_id > 0 Then
|
| 286 |
'--- Allow failed auto-builds to be rejected back to WIP, conditions allowing.
|
286 |
'--- Allow failed auto-builds to be rejected back to WIP, conditions allowing.
|
| 287 |
' Can reject if:
|
287 |
' Can reject if:
|
| 288 |
' Manual Package and a suitable user
|
288 |
' Manual Package and a suitable user
|
| 289 |
' Auto Package and
|
289 |
' Auto Package and
|
| 290 |
' The release has no active daemons OR the packahe has failed to build
|
290 |
' The release has no active daemons OR the package has failed to build
|
| - |
|
291 |
'
|
| - |
|
292 |
' Note: Must match code in _make_reject.asp
|
| - |
|
293 |
'
|
| 291 |
If pkgInfoHash.Item("build_type") = "A" Then
|
294 |
If pkgInfoHash.Item("build_type") = "A" Then
|
| - |
|
295 |
If activeDaemonCount(parRtag_id) = 0 _
|
| 292 |
If activeDaemonCount(parRtag_id) = 0 OR isInDoNotRippleTable(parRtag_id, pkgInfoHash.Item("pv_id")) = TRUE Then
|
296 |
OR isInDoNotRippleTable(parRtag_id, pkgInfoHash.Item("pv_id")) = TRUE _
|
| - |
|
297 |
OR pkgInfoHash.Item("hasFutureBuild") <> "" Then
|
| 293 |
Call ActivateButtonAccordingToReleaseModeAndPermissions("btnRejectAutobuildPackage", "RejectPackageFromPending")
|
298 |
Call ActivateButtonAccordingToReleaseModeAndPermissions("btnRejectAutobuildPackage", "RejectPackageFromPending")
|
| 294 |
End If
|
299 |
End If
|
| 295 |
Else
|
300 |
Else
|
| 296 |
' Manual Package should not be in this state
|
301 |
' Manual Package should not be in this state
|
| 297 |
If canActionControlInProject("EditCriticalInfoForLockedPackage") Then
|
302 |
If canActionControlInProject("EditCriticalInfoForLockedPackage") Then
|
| 298 |
Call objBtnControl.Active ("btnRejectAutobuildPackage", "Y")
|
303 |
Call objBtnControl.Active ("btnRejectAutobuildPackage", "Y")
|