zypp/media/Makefile \
zypp/media/proxyinfo/Makefile \
zypp/url/Makefile \
+ zypp/target/Makefile \
+ zypp/target/rpm/Makefile
)
dnl ==================================================
SUBDIRS = yum
-noinst_PROGRAMS = Msg Msg.debug Patch Patch.debug Script Script.debug PatchSelect PatchSelect.debug PatchRead PatchRead.debug SourceRead SourceRead.debug
+noinst_PROGRAMS = Msg Msg.debug Patch Patch.debug Script Script.debug PatchSelect PatchSelect.debug PatchRead PatchRead.debug SourceRead SourceRead.debug RpmTarget RpmTarget.debug
## ##################################################
SourceRead_debug_SOURCES = $(SourceRead_SOURCES)
SourceRead_debug_LDFLAGS = -static
+RpmTarget_SOURCES = RpmTarget.cc
+
+RpmTarget_debug_SOURCES = $(RpmTarget_SOURCES)
+RpmTarget_debug_LDFLAGS = -static
+
## ##################################################
std::string _name( "msg1" );
Edition _edition( "1.0", "42" );
Arch _arch( "noarch" );
- base::shared_ptr<detail::MessageImpl> mp1(new MyMessageImpl(text));
+ shared_ptr<detail::MessageImpl> mp1(new MyMessageImpl(text));
Message::Ptr m( detail::makeResolvableFromImpl( _name, _edition, _arch, mp1));
DBG << *m << endl;
--- /dev/null
+#include <iostream>
+#include "zypp/base/Logger.h"
+#include "zypp/target/rpm/RpmDb.h"
+
+
+using namespace std;
+using namespace zypp;
+using namespace zypp::target::rpm;
+
+/******************************************************************
+**
+**
+** FUNCTION NAME : main
+** FUNCTION TYPE : int
+**
+** DESCRIPTION :
+*/
+int main( int argc, char * argv[] )
+{
+ INT << "===[START]==========================================" << endl;
+
+ RpmDb db;
+
+ DBG << "===[DB OBJECT CREATED]==============================" << endl;
+
+ db.initDatabase();
+
+ DBG << "===[DATABASE INITIALIZED]===========================" << endl;
+
+ std::list<Package::Ptr> packages = db.getPackages();
+ for (std::list<Package::Ptr>::const_iterator it = packages.begin();
+ it != packages.end();
+ it++)
+ {
+ DBG << **it << endl;
+ }
+
+ INT << "===[END]============================================" << endl;
+ return 0;
+}
## Process this file with automake to produce Makefile.in
## ##################################################
-SUBDIRS = base parser capability solver source detail media url
+SUBDIRS = base parser capability solver source detail media url target
## ##################################################
media/lib@PACKAGE@_media.la \
url/lib@PACKAGE@_url.la \
\
+ target/lib@PACKAGE@_target.la \
-lutil
## ##################################################
url.setPathName( escapedPath(path) );
Pathname dest = target.absolutename();
- string destNew = target.asString() + ".new.yast.37456";
+ string destNew = target.asString() + ".new.zypp.37456";
DBG << "dest: " << dest << endl;
DBG << "destNew: " << destNew << endl;
--- /dev/null
+## Process this file with automake to produce Makefile.in
+## ##################################################
+
+SUBDIRS = rpm
+
+## ##################################################
+
+include_HEADERS =
+
+## ##################################################
+
+lib_LTLIBRARIES = lib@PACKAGE@_target.la
+
+## ##################################################
+
+lib@PACKAGE@_target_la_SOURCES =
+
+lib@PACKAGE@_target_la_LDFLAGS = @LIB_VERSION_INFO@
+
+lib@PACKAGE@_target_la_LIBADD = rpm/lib@PACKAGE@_target_rpm.la
+
+## ##################################################