1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-19 01:37:17 +01:00

still working on windows build failure; names for the items in BaseCompiler::termination_status shuld be unique; new build number 3466

This commit is contained in:
Vadim Kurland 2011-02-08 15:26:31 -08:00
parent 9ed6889906
commit abcafdd4b3
21 changed files with 27 additions and 25 deletions

View File

@ -7,7 +7,7 @@ FWB_MICRO_VERSION=0
# build number is like "nano" version number. I am incrementing build
# number during development cycle
#
BUILD_NUM="3465"
BUILD_NUM="3466"
VERSION="$FWB_MAJOR_VERSION.$FWB_MINOR_VERSION.$FWB_MICRO_VERSION.$BUILD_NUM"

View File

@ -1,2 +1,2 @@
#define VERSION "4.2.0.3465"
#define VERSION "4.2.0.3466"
#define GENERATION "4.2"

View File

@ -3,7 +3,7 @@
%define name fwbuilder
%define version 4.2.0.3465
%define version 4.2.0.3466
%define release 1
%if "%_vendor" == "MandrakeSoft"

View File

@ -4,6 +4,6 @@ Replaces: fwbuilder (<=4.1.1-1), fwbuilder-common, fwbuilder-bsd, fwbuilder-linu
Priority: extra
Section: checkinstall
Maintainer: vadim@fwbuilder.org
Version: 4.2.0.3465-1
Version: 4.2.0.3466-1
Depends: libqt4-gui (>= 4.3.0), libxml2, libxslt1.1, libsnmp | libsnmp15
Description: Firewall Builder GUI and policy compilers

View File

@ -1,6 +1,6 @@
%define name fwbuilder
%define version 4.2.0.3465
%define version 4.2.0.3466
%define release 1
%if "%_vendor" == "MandrakeSoft"

View File

@ -378,7 +378,7 @@ QString CompilerDriver_iosacl::run(const std::string &cluster_id,
}
catch (FWException &ex)
{
status = BaseCompiler::ERROR;
status = BaseCompiler::FWCOMPILER_ERROR;
return QString::fromUtf8(ex.toString().c_str());
}

View File

@ -535,7 +535,7 @@ QString CompilerDriver_pix::run(const std::string &cluster_id,
}
catch (FWException &ex)
{
status = BaseCompiler::ERROR;
status = BaseCompiler::FWCOMPILER_ERROR;
return QString::fromUtf8(ex.toString().c_str());
}

View File

@ -366,7 +366,7 @@ QString CompilerDriver_procurve_acl::run(const std::string &cluster_id,
}
catch (FWException &ex)
{
status = BaseCompiler::ERROR;
status = BaseCompiler::FWCOMPILER_ERROR;
return QString::fromUtf8(ex.toString().c_str());
}

View File

@ -162,7 +162,7 @@ int main(int argc, char **argv)
driver.compile();
delete objdb;
return (driver.getStatus() == BaseCompiler::SUCCESS) ? 0 : 1;
return (driver.getStatus() == BaseCompiler::FWCOMPILER_SUCCESS) ? 0 : 1;
} catch(libfwbuilder::FWException &ex)
{

View File

@ -175,7 +175,7 @@ int main(int argc, char **argv)
}
driver.compile();
delete objdb;
return (driver.getStatus() == BaseCompiler::SUCCESS) ? 0 : 1;
return (driver.getStatus() == BaseCompiler::FWCOMPILER_SUCCESS) ? 0 : 1;
} catch(const FWException &ex) {
cerr << ex.toString() << endl;

View File

@ -171,7 +171,7 @@ int main(int argc, char **argv)
}
driver.compile();
delete objdb;
return (driver.getStatus() == BaseCompiler::SUCCESS) ? 0 : 1;
return (driver.getStatus() == BaseCompiler::FWCOMPILER_SUCCESS) ? 0 : 1;
} catch(const FWException &ex)
{

View File

@ -152,7 +152,7 @@ int main(int argc, char **argv)
}
driver.compile();
delete objdb;
return (driver.getStatus() == BaseCompiler::SUCCESS) ? 0 : 1;
return (driver.getStatus() == BaseCompiler::FWCOMPILER_SUCCESS) ? 0 : 1;
} catch(const FWException &ex)
{

View File

@ -746,7 +746,7 @@ QString CompilerDriver_ipt::run(const std::string &cluster_id,
}
catch (FWException &ex)
{
status = BaseCompiler::ERROR;
status = BaseCompiler::FWCOMPILER_ERROR;
return QString::fromUtf8(ex.toString().c_str());
}

View File

@ -152,7 +152,7 @@ void BaseCompiler::abort(const string &errstr) throw(FWException)
printError(errstr);
if (inEmbeddedMode())
throw FatalErrorInSingleRuleCompileMode(errors_buffer.str());
status = ERROR;
status = FWCOMPILER_ERROR;
if (test_mode) return;
throw FWException("Fatal error");
}
@ -165,14 +165,14 @@ void BaseCompiler::abort(FWObject *fw,
message("error", fw, ruleset, rule, errstr);
if (inEmbeddedMode())
throw FatalErrorInSingleRuleCompileMode(errors_buffer.str());
status = ERROR;
status = FWCOMPILER_ERROR;
if (test_mode) return;
throw FWException("Fatal error");
}
void BaseCompiler::error(const string &str)
{
status = ERROR;
status = FWCOMPILER_ERROR;
printError(str);
}
@ -181,7 +181,7 @@ void BaseCompiler::error(FWObject *fw,
FWObject *rule,
const string &errstr)
{
status = ERROR;
status = FWCOMPILER_ERROR;
message("error", fw, ruleset, rule, errstr);
}

View File

@ -75,7 +75,7 @@ namespace fwcompiler {
const std::string &errstr);
public:
typedef enum {SUCCESS, ERROR} termination_status;
typedef enum {FWCOMPILER_SUCCESS, FWCOMPILER_ERROR} termination_status;
protected:
termination_status status;
@ -132,7 +132,7 @@ public:
test_mode = false;
embedded_mode = false;
level_macro = "%LEVEL%";
status = SUCCESS;
status = FWCOMPILER_SUCCESS;
};
std::string getErrors(const std::string &comment_sep);

View File

@ -155,7 +155,7 @@ int main(int argc, char **argv)
}
driver.compile();
delete objdb;
return (driver.getStatus() == BaseCompiler::SUCCESS) ? 0 : 1;
return (driver.getStatus() == BaseCompiler::FWCOMPILER_SUCCESS) ? 0 : 1;
} catch(const FWException &ex)
{

View File

@ -416,7 +416,7 @@ QString CompilerDriver_ipf::run(const std::string &cluster_id,
}
catch (FWException &ex)
{
status = BaseCompiler::ERROR;
status = BaseCompiler::FWCOMPILER_ERROR;
return QString::fromUtf8(ex.toString().c_str());
}

View File

@ -338,7 +338,7 @@ QString CompilerDriver_ipfw::run(const std::string &cluster_id,
}
catch (FWException &ex)
{
status = BaseCompiler::ERROR;
status = BaseCompiler::FWCOMPILER_ERROR;
return QString::fromUtf8(ex.toString().c_str());
}

View File

@ -758,7 +758,7 @@ QString CompilerDriver_pf::run(const std::string &cluster_id,
}
catch (FWException &ex)
{
status = BaseCompiler::ERROR;
status = BaseCompiler::FWCOMPILER_ERROR;
return QString::fromUtf8(ex.toString().c_str());
}

View File

@ -175,7 +175,8 @@ int main(int argc, char **argv)
driver.compile();
delete objdb;
return (driver.getStatus() == BaseCompiler::SUCCESS) ? 0 : 1;
return (driver.getStatus() == BaseCompiler::FWCOMPILER_SUCCESS) ? 0 : 1;
} catch(libfwbuilder::FWException &ex)
{

View File

@ -162,7 +162,8 @@ int main(int argc, char **argv)
driver.compile();
delete objdb;
return (driver.getStatus() == BaseCompiler::SUCCESS) ? 0 : 1;
return (driver.getStatus() == BaseCompiler::FWCOMPILER_SUCCESS) ? 0 : 1;
} catch(libfwbuilder::FWException &ex)
{