1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/target/rpm/librpmDb.cv3.cc
14 #include "zypp/base/Logger.h"
16 #include "zypp/target/rpm/librpmDb.h"
17 #include "zypp/target/rpm/RpmCallbacks.h"
18 #include "zypp/ZYppCallbacks.h"
23 #define Y2LOG "librpmDb"
31 /******************************************************************
34 * FUNCTION NAME : convertV3toV4
36 * \throws RpmException
39 void convertV3toV4( const Pathname & v3db_r, const librpmDb::constPtr & v4db_r )
42 callback::SendReport<ConvertDBReport> report;
43 report->start(v3db_r);
46 // Does no longer work with rpm 4.9.
47 // internal_convertV3toV4( v3db_r, v4db_r, report );
48 INT << "Unsupported: Convert rpm3 database to rpm4" << endl;
49 ZYPP_THROW(RpmDbOpenException(Pathname("/"), v3db_r));
51 catch (RpmException & excpt_r)
53 report->finish(v3db_r, ConvertDBReport::FAILED,excpt_r.asUserString());
54 ZYPP_RETHROW(excpt_r);
56 report->finish(v3db_r, ConvertDBReport::NO_ERROR, "");