Subversion Repositories DevTools

Rev

Rev 1339 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<%@LANGUAGE="VBSCRIPT"%>
<%
Option explicit
Response.Expires = 0    ' always load the page, dont store
%>
<%
'=====================================================
'                               Make Single Package Official
'=====================================================
%>
<!--#include file="common/conf.asp"-->
<!--#include file="common/globals.asp"-->
<!--#include file="common/formating.asp"-->
<!--#include file="common/qstr.asp"-->
<!--#include file="common/common_subs.asp"-->
<!--#include file="common/common_dbedit.asp"-->
<!--#include file="common/common_make_release_subs.asp"-->
<!--#include file="common/daemon_instructions.asp"-->
<%
'------------ ACCESS CONTROL ------------------
%>
<!--#include file="_access_control_login.asp"-->
<!--#include file="_access_control_general.asp"-->
<!--#include file="_access_control_project.asp"-->
<%
'------------ Variable Definition -------------
Dim parPv_id
Dim parRfile
Dim retERRmsg
Dim retALRTmsg
Dim retParameters
Dim parSReq             ' Skip requirements test
Dim pkgType
'------------ Constants Declaration -----------
'------------ Variable Init -------------------
parPv_id = QStrPar("pv_id")
parRfile = QStrPar("rfile")
parSReq = QStrPar("sreq")
'----------------------------------------------
%>
<%
'------------------------------------------------------------------------------------

'-------------------------------------------------------------------------------------
%>
<%
'---------------------------------- MAIN LINE ----------------------------------------
' REQUREMENTS CHECK for ALL
' Call RaiseMsg(enum_MSG_ERROR, "Testing Testing")
Call CheckRequirementsForMakeRelease ( parPv_id, parRtag_id, pkgType, retERRmsg, retALRTmsg, retParameters )

'Response.write "HERE"
If IsNull(retERRmsg) Then
        ' All Requirements OK

   If (DaemonInstructionPreventsEditing(Request("rtag_id"), Request("pv_id"))) Then
      Call RaiseMsg(enum_MSG_ERROR, "This package version has one or more daemon instructions present<br><br>"&_
                                    "Please delete them or allow them to be consumed before attempting to make the package released.")
   Else
      If PUBLIC_MakeRelease ( parRtag_id, parPv_id ) = TRUE Then
         Response.Redirect ( "_generate_release_notes.asp?rfile="& parRfile &"&pv_id="& parPv_id &"&rtag_id="& parRtag_id )
      Else
         ' do nothing - the reality is that the exception handling done in PUBLIC_MakeRelease redirects on an error anyway.
      End If
        End If


Else
                Call RaiseMsg ( Eval(retERRmsg), parRtag_id &"|"& parPv_id &"|"& retParameters &"|"& "N" )
End If

%>


<!-- DESTRUCTOR ------->
<!--#include file="common/destructor.asp"-->