[ 1890204 ] 2Pack PackRoll hangs fix attached
Submitted by Kostadin (kzmp) for review testing
This commit is contained in:
parent
52e5d28049
commit
12487d063b
|
@ -23,11 +23,12 @@ import java.io.InputStream;
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
import java.sql.PreparedStatement;
|
import java.sql.PreparedStatement;
|
||||||
import java.sql.ResultSet;
|
import java.sql.ResultSet;
|
||||||
import java.util.logging.*;
|
import java.util.logging.Level;
|
||||||
|
|
||||||
|
import org.compiere.process.ProcessInfoParameter;
|
||||||
|
import org.compiere.process.SvrProcess;
|
||||||
import org.compiere.util.DB;
|
import org.compiere.util.DB;
|
||||||
import org.compiere.util.Env;
|
import org.compiere.util.Env;
|
||||||
import org.compiere.process.*;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reverse Package Install.
|
* Reverse Package Install.
|
||||||
|
@ -83,7 +84,6 @@ public class PackRoll extends SvrProcess {
|
||||||
+ "WHERE AD_Package_Imp_ID=" + m_AD_Package_Imp_ID
|
+ "WHERE AD_Package_Imp_ID=" + m_AD_Package_Imp_ID
|
||||||
+ " ORDER BY AD_Package_Imp_Detail_ID DESC");
|
+ " ORDER BY AD_Package_Imp_Detail_ID DESC");
|
||||||
log.info(sql.toString());
|
log.info(sql.toString());
|
||||||
int x = 0;
|
|
||||||
PreparedStatement pstmt = null;
|
PreparedStatement pstmt = null;
|
||||||
try {
|
try {
|
||||||
pstmt = DB.prepareStatement(sql.toString(), null);
|
pstmt = DB.prepareStatement(sql.toString(), null);
|
||||||
|
@ -430,7 +430,7 @@ public class PackRoll extends SvrProcess {
|
||||||
sqlD = new StringBuffer("UPDATE AD_Package_Imp"
|
sqlD = new StringBuffer("UPDATE AD_Package_Imp"
|
||||||
+ " SET Uninstall = 'Y'" + " WHERE AD_Package_Imp_ID = "
|
+ " SET Uninstall = 'Y'" + " WHERE AD_Package_Imp_ID = "
|
||||||
+ m_AD_Package_Imp_ID);
|
+ m_AD_Package_Imp_ID);
|
||||||
no = DB.executeUpdate(sqlD.toString(), null);
|
no = DB.executeUpdate(sqlD.toString(), get_TrxName());
|
||||||
|
|
||||||
sqlB = new StringBuffer("UPDATE AD_Package_Imp "
|
sqlB = new StringBuffer("UPDATE AD_Package_Imp "
|
||||||
+ " SET PK_Status = 'Uninstalled'"
|
+ " SET PK_Status = 'Uninstalled'"
|
||||||
|
|
Loading…
Reference in New Issue