From: Jiri Srain Date: Wed, 16 Nov 2005 13:15:40 +0000 (+0000) Subject: added frist draft of YUMScriptImpl X-Git-Tag: BASE-SuSE-SLE-10-SP2-Branch~3708 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=942e271ab2738e16027b8a2ce9b5e8293931c25a;p=platform%2Fupstream%2Flibzypp.git added frist draft of YUMScriptImpl fixed library linking --- diff --git a/configure.ac b/configure.ac index 4623858..7e3d9e0 100644 --- a/configure.ac +++ b/configure.ac @@ -109,7 +109,9 @@ AC_OUTPUT( \ zypp/capability/Makefile \ zypp/parser/Makefile \ zypp/parser/yum/Makefile \ - zypp/parser/yum/schema/Makefile + zypp/parser/yum/schema/Makefile \ + zypp/source/Makefile \ + zypp/source/yum/Makefile ) dnl ================================================== diff --git a/test/Makefile.am b/test/Makefile.am index add4e92..fba280c 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -11,7 +11,7 @@ noinst_PROGRAMS = Example.createResolvable ## ################################################## -LDADD = $(top_srcdir)/zypp/lib@PACKAGE@.la /usr/lib/libxml2.a /usr/lib/libz.a +LDADD = $(top_srcdir)/zypp/lib@PACKAGE@.la ## ################################################## diff --git a/test/devel.jsrain/Makefile.am b/test/devel.jsrain/Makefile.am index ffd3d7b..45f1784 100644 --- a/test/devel.jsrain/Makefile.am +++ b/test/devel.jsrain/Makefile.am @@ -14,7 +14,7 @@ AM_LDFLAGS = AM_CXXFLAGS = -pg -LDADD = $(top_srcdir)/zypp/lib@PACKAGE@.la /usr/lib/libxml2.a /usr/lib/libz.a +LDADD = $(top_srcdir)/zypp/lib@PACKAGE@.la ## ################################################## diff --git a/test/devel.jsrain/PatchRead.cc b/test/devel.jsrain/PatchRead.cc index 5fae299..633efb1 100644 --- a/test/devel.jsrain/PatchRead.cc +++ b/test/devel.jsrain/PatchRead.cc @@ -15,45 +15,23 @@ #include #include +#include +#include +#include + #include #include #include +using namespace zypp::detail; + using namespace std; using namespace zypp; +using namespace zypp::parser::YUM; +using namespace zypp::source::YUM; -class PACKAGE { - public: - string name; - string version; - string release; - string arch; - list requires; -}; - -class MESSAGE { - public: - string name; - string type; - string text; -}; - -class SCRIPT { - public: - string name; - string do_script; - string undo_script; -}; - -class PATCH { - public: - string name; - list pack; - list msg; - list