Subversion Repositories DevTools

Rev

Go to most recent revision | Details | 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
54
	' All Requirements OK
123 ghuddy 55
 
153 ghuddy 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.")
129 ghuddy 59
   Else
153 ghuddy 60
      If PUBLIC_MakeRelease ( parRtag_id, parPv_id ) = TRUE Then
61
         Response.Redirect ( "_generate_release_notes.asp?rfile="& parRfile &"&pv_id="& parPv_id &"&rtag_id="& parRtag_id )
62
      Else
63
         ' do nothing - the reality is that the exception handling done in PUBLIC_MakeRelease redirects on an error anyway.
64
      End If
119 ghuddy 65
	End If
123 ghuddy 66
 
153 ghuddy 67
 
119 ghuddy 68
Else
69
		Call RaiseMsg ( Eval(retERRmsg), parRtag_id &"|"& parPv_id &"|"& retParameters &"|"& "N" )
70
End If
71
 
72
%>
73
 
74
 
75
<!-- DESTRUCTOR ------->
123 ghuddy 76
<!--#include file="common/destructor.asp"-->