Subversion Repositories DevTools

Rev

Rev 5506 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
119 ghuddy 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
Option explicit
4
Response.Expires = 0	' always load the page, dont store
5
%>
6
<%
7
'=====================================================
8
'				Make Single Package Official
9
'=====================================================
10
%>
11
<!--#include file="common/conf.asp"-->
12
<!--#include file="common/globals.asp"-->
13
<!--#include file="common/formating.asp"-->
14
<!--#include file="common/qstr.asp"-->
15
<!--#include file="common/common_subs.asp"-->
16
<!--#include file="common/common_dbedit.asp"-->
123 ghuddy 17
<!--#include file="common/common_make_release_subs.asp"-->
153 ghuddy 18
<!--#include file="common/daemon_instructions.asp"-->
119 ghuddy 19
<%
20
'------------ ACCESS CONTROL ------------------
21
%>
22
<!--#include file="_access_control_login.asp"-->
23
<!--#include file="_access_control_general.asp"-->
24
<!--#include file="_access_control_project.asp"-->
25
<%
26
'------------ Variable Definition -------------
27
Dim parPv_id
28
Dim parRfile
29
Dim retERRmsg
30
Dim retALRTmsg
31
Dim retParameters
32
Dim parSReq		' Skip requirements test
33
Dim pkgType
34
'------------ Constants Declaration -----------
35
'------------ Variable Init -------------------
36
parPv_id = QStrPar("pv_id")
37
parRfile = QStrPar("rfile")
38
parSReq = QStrPar("sreq")
39
'----------------------------------------------
40
%>
41
<%
42
'------------------------------------------------------------------------------------
43
 
44
'-------------------------------------------------------------------------------------
45
%>
46
<%
47
'---------------------------------- MAIN LINE ----------------------------------------
48
' REQUREMENTS CHECK for ALL
1376 dpurdie 49
' Call RaiseMsg(enum_MSG_ERROR, "Testing Testing")
119 ghuddy 50
Call CheckRequirementsForMakeRelease ( parPv_id, parRtag_id, pkgType, retERRmsg, retALRTmsg, retParameters )
1376 dpurdie 51
 
119 ghuddy 52
'Response.write "HERE"
53
If IsNull(retERRmsg) Then
5172 dpurdie 54
    ' All Requirements OK
123 ghuddy 55
 
5172 dpurdie 56
    If (DaemonInstructionPreventsEditing(Request("rtag_id"), Request("pv_id"))) Then
57
        Call RaiseMsg(enum_MSG_ERROR, "This package version has one or more daemon instructions present<br><br>"&_
58
                                      "Please delete them or allow them to be consumed before attempting to make the package released.")
59
    Else
153 ghuddy 60
      If PUBLIC_MakeRelease ( parRtag_id, parPv_id ) = TRUE Then
5172 dpurdie 61
        If PUBLIC_Run_onMakeOfficial ( parRtag_id, parPv_id ) = TRUE Then
62
            Call PUBLIC_NotifyInterestManualBuild( parRtag_id, parPv_id )
63
        End If
64
 
5957 dpurdie 65
        Call Destroy_All_Objects
5172 dpurdie 66
        Response.Redirect ( parRfile & "?pv_id="& parPv_id &"&rtag_id="& parRtag_id )
153 ghuddy 67
      Else
68
         ' do nothing - the reality is that the exception handling done in PUBLIC_MakeRelease redirects on an error anyway.
69
      End If
5172 dpurdie 70
    End If
123 ghuddy 71
 
119 ghuddy 72
Else
5172 dpurdie 73
    Call RaiseMsg ( Eval(retERRmsg), parRtag_id &"|"& parPv_id &"|"& retParameters &"|"& "N" )
119 ghuddy 74
End If
75
 
76
%>
77
<!-- DESTRUCTOR ------->
123 ghuddy 78
<!--#include file="common/destructor.asp"-->