From 942e271ab2738e16027b8a2ce9b5e8293931c25a Mon Sep 17 00:00:00 2001 From: Jiri Srain Date: Wed, 16 Nov 2005 13:15:40 +0000 Subject: [PATCH] added frist draft of YUMScriptImpl fixed library linking --- configure.ac | 4 +- test/Makefile.am | 2 +- test/devel.jsrain/Makefile.am | 2 +- test/devel.jsrain/PatchRead.cc | 107 +++++++++++++++------------------------ test/devel.ma/Makefile.am | 2 +- zypp/Makefile.am | 2 +- zypp/parser/Makefile.am | 4 ++ zypp/source/Makefile.am | 21 ++++++++ zypp/source/Source.cc | 31 ++++++++++++ zypp/source/Source.h | 47 +++++++++++++++++ zypp/source/yum/Makefile.am | 19 +++++++ zypp/source/yum/YUMScriptImpl.cc | 62 +++++++++++++++++++++++ zypp/source/yum/YUMScriptImpl.h | 48 ++++++++++++++++++ 13 files changed, 280 insertions(+), 71 deletions(-) create mode 100644 zypp/source/Makefile.am create mode 100644 zypp/source/Source.cc create mode 100644 zypp/source/Source.h create mode 100644 zypp/source/yum/Makefile.am create mode 100644 zypp/source/yum/YUMScriptImpl.cc create mode 100644 zypp/source/yum/YUMScriptImpl.h 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