2 #include <zypp/base/Logger.h>
3 #include <zypp/base/Exception.h>
5 #include <zypp/Edition.h>
10 inline std::string asOp( int res )
11 { return res ? ( res < 0 ? " < " : " > " ) : " == "; }
13 /******************************************************************
15 ** FUNCTION NAME : main
16 ** FUNCTION TYPE : int
18 int main( int argc, char * argv[] )
27 lhs = Edition( argv[0] );
29 rhs = Edition( argv[1] );
31 cerr << "compare: " << lhs << asOp( lhs.compare( rhs ) ) << rhs << endl;
32 cerr << "match: " << lhs << asOp( lhs.match( rhs ) ) << rhs << endl;