move new classes to zypp2 to make a parallel refactoring
authorDuncan Mac-Vicar P <dmacvicar@suse.de>
Mon, 17 Jul 2006 11:46:31 +0000 (11:46 +0000)
committerDuncan Mac-Vicar P <dmacvicar@suse.de>
Mon, 17 Jul 2006 11:46:31 +0000 (11:46 +0000)
28 files changed:
Makefile.am
configure.ac
testsuite/cache/Makefile.am
zypp/Makefile.am
zypp/source/yum/Makefile.am
zypp2/Makefile.am [new file with mode: 0644]
zypp2/cache/KnownSourcesCache.cpp [moved from zypp/cache/KnownSourcesCache.cpp with 100% similarity]
zypp2/cache/KnownSourcesCache.h [moved from zypp/cache/KnownSourcesCache.h with 100% similarity]
zypp2/cache/Makefile.am [moved from zypp/cache/Makefile.am with 63% similarity]
zypp2/cache/SourceCache.cpp [moved from zypp/cache/SourceCache.cpp with 100% similarity]
zypp2/cache/SourceCache.h [moved from zypp/cache/SourceCache.h with 100% similarity]
zypp2/cache/SourceCacheInitializer.cpp [moved from zypp/cache/SourceCacheInitializer.cpp with 100% similarity]
zypp2/cache/SourceCacheInitializer.h [moved from zypp/cache/SourceCacheInitializer.h with 100% similarity]
zypp2/cache/SourceCacher.cpp [moved from zypp/cache/SourceCacher.cpp with 100% similarity]
zypp2/cache/SourceCacher.h [moved from zypp/cache/SourceCacher.h with 100% similarity]
zypp2/cache/Utils.cpp [moved from zypp/cache/Utils.cpp with 100% similarity]
zypp2/cache/Utils.h [moved from zypp/cache/Utils.h with 100% similarity]
zypp2/cache/sqlite3x/Makefile.am [moved from zypp/cache/sqlite3x/Makefile.am with 66% similarity]
zypp2/cache/sqlite3x/sqlite3x.hpp [moved from zypp/cache/sqlite3x/sqlite3x.hpp with 100% similarity]
zypp2/cache/sqlite3x/sqlite3x_command.cpp [moved from zypp/cache/sqlite3x/sqlite3x_command.cpp with 100% similarity]
zypp2/cache/sqlite3x/sqlite3x_connection.cpp [moved from zypp/cache/sqlite3x/sqlite3x_connection.cpp with 100% similarity]
zypp2/cache/sqlite3x/sqlite3x_exception.cpp [moved from zypp/cache/sqlite3x/sqlite3x_exception.cpp with 100% similarity]
zypp2/cache/sqlite3x/sqlite3x_reader.cpp [moved from zypp/cache/sqlite3x/sqlite3x_reader.cpp with 100% similarity]
zypp2/cache/sqlite3x/sqlite3x_transaction.cpp [moved from zypp/cache/sqlite3x/sqlite3x_transaction.cpp with 100% similarity]
zypp2/source/Makefile.am [new file with mode: 0644]
zypp2/source/yum/Makefile.am [new file with mode: 0644]
zypp2/source/yum/YUMSourceCacher.cc [moved from zypp/source/yum/YUMSourceCacher.cc with 100% similarity]
zypp2/source/yum/YUMSourceCacher.h [moved from zypp/source/yum/YUMSourceCacher.h with 100% similarity]

index 72b7d3e..12d907a 100644 (file)
@@ -4,7 +4,7 @@
 # Do NOT list 'devel' in subdirs. It's developers playgound
 # and must not prevent anything from building.
 
-SUBDIRS = zypp testsuite po doc
+SUBDIRS = zypp zypp2 testsuite po doc
 
 ## ##################################################
 
index fa4f472..bbe93a7 100644 (file)
@@ -254,8 +254,10 @@ AC_OUTPUT(  po/Makefile.in\
        zypp/solver/Makefile            \
        zypp/solver/detail/Makefile     \
   zypp/data/Makefile \
-       zypp/cache/Makefile \
-  zypp/cache/sqlite3x/Makefile
+       zypp2/cache/Makefile \
+  zypp2/cache/sqlite3x/Makefile
+  zypp2/source/Makefile \
+  zypp2/source/yum/Makefile \
   zypp/source/Makefile         \
        zypp/source/plaindir/Makefile   \
        zypp/source/susetags/Makefile   \
index 8912f63..8b0134b 100644 (file)
@@ -13,7 +13,7 @@ check_PROGRAMS = SourceCacheInitializer
 
 ## ##################################################
 
-LDADD =        $(top_srcdir)/zypp/lib@PACKAGE@.la 
+LDADD =        $(top_srcdir)/zypp/lib@PACKAGE@.la $(top_srcdir)/zypp/lib@PACKAGE@2.la
 
 ## ##################################################
 
index 3af75ff..26b8c19 100644 (file)
@@ -2,7 +2,7 @@
 ## ##################################################
 
 SUBDIRS = base thread url media capability detail pool parser \
-       data source cache target solver zypp_detail ui
+       data source target solver zypp_detail ui
 
 AM_CXXFLAGS = -DZYPP_BASE_LOGGER_LOGGROUP=\"zypp\"
 
index db6862d..ea9a15f 100644 (file)
@@ -19,9 +19,7 @@ sourceyuminclude_HEADERS =            \
        YUMPatchImpl.h                  \
        YUMGroupImpl.h                  \
        YUMPatternImpl.h                \
-       YUMProductImpl.h \
-       YUMSourceCacher.h
-
+       YUMProductImpl.h
 
 noinst_LTLIBRARIES =   lib@PACKAGE@_source_yum.la
 
@@ -36,7 +34,6 @@ lib@PACKAGE@_source_yum_la_SOURCES =  \
        YUMPatchImpl.cc                 \
        YUMGroupImpl.cc                 \
        YUMPatternImpl.cc               \
-       YUMProductImpl.cc \
-       YUMSourceCacher.cc
+       YUMProductImpl.cc
 
 ## ##################################################
diff --git a/zypp2/Makefile.am b/zypp2/Makefile.am
new file mode 100644 (file)
index 0000000..6d499a6
--- /dev/null
@@ -0,0 +1,54 @@
+## Process this file with automake to produce Makefile.in
+## ##################################################
+
+SUBDIRS = cache
+
+AM_CXXFLAGS = -DZYPP_BASE_LOGGER_LOGGROUP=\"zypp2\"
+
+## ##################################################
+
+pkginclude_HEADERS = 
+
+## ##################################################
+
+lib_LTLIBRARIES =      lib@PACKAGE@2.la
+
+## ##################################################
+
+lib@PACKAGE@2_la_SOURCES = 
+
+lib@PACKAGE@_la_LDFLAGS =      @LIBZYPP_VERSION_INFO@
+
+lib@PACKAGE@_la_LIBADD =        cache/lib@PACKAGE@2_cache.la \
+                               -lboost_filesystem \
+                               -lsqlite3 \
+                               -lutil
+# !!! base/lib@PACKAGE@_base.la MUST BE THE LAST zypp lib linked
+
+## ##################################################
+
+EXTRA_DIST = @DOXYGEN/*
+
+#<INSTALL-HEADER-TARGET>
+
+# Automatically inserted by insert_install_target
+# DO NOT REMOVE THE TAGS!
+
+# Install header files only if different to version already installed -
+# prevent unnecessary installations to keep make dependency changes
+# and thus rebuilds for dependent packages as low as possible.
+
+install-pkgincludeHEADERS: $(pkginclude_HEADERS)
+       @$(NORMAL_INSTALL)
+       $(mkinstalldirs) $(DESTDIR)$(pkgincludedir)
+       @list='$(pkginclude_HEADERS)';                                                  \
+       for p in $$list; do                                                             \
+               if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi;                    \
+               if ! cmp -s $$d$$p $(DESTDIR)$(pkgincludedir)/$$p; then                 \
+                       echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(pkgincludedir)/$$p";  \
+                       $(INSTALL_DATA) $$d$$p $(DESTDIR)$(pkgincludedir)/$$p;          \
+               fi                                                                      \
+       done
+
+#</INSTALL-HEADER-TARGET>
+
similarity index 63%
rename from zypp/cache/Makefile.am
rename to zypp2/cache/Makefile.am
index 5a60eed..0c72f14 100644 (file)
@@ -10,15 +10,15 @@ cacheinclude_HEADERS = SourceCache.h SourceCacheInitializer.h SourceCacher.h Kno
 
 ## ##################################################
 
-noinst_LTLIBRARIES =   lib@PACKAGE@_cache.la
+noinst_LTLIBRARIES =   lib@PACKAGE@2_cache.la
 
 ## ##################################################
 
-lib@PACKAGE@_cache_la_SOURCES =        SourceCache.cpp SourceCacheInitializer.cpp SourceCacher.cpp KnownSourcesCache.cpp Utils.cpp
+lib@PACKAGE@2_cache_la_SOURCES =       SourceCache.cpp SourceCacheInitializer.cpp SourceCacher.cpp KnownSourcesCache.cpp Utils.cpp
 
-lib@PACKAGE@_cache_la_LDFLAGS = @LIBZYPP_VERSION_INFO@
+lib@PACKAGE@2_cache_la_LDFLAGS = @LIBZYPP_VERSION_INFO@
 
-lib@PACKAGE@_cache_la_LIBADD = sqlite3x/lib@PACKAGE@_sqlite3x.la
+lib@PACKAGE@2_cache_la_LIBADD = sqlite3x/lib@PACKAGE@2_sqlite3x.la
 ##     hal/lib@PACKAGE@_cache_hal.la \
 ##     modalias/lib@PACKAGE@_cache_modalias.la \
 ##     store/lib@PACKAGE@_cache_store.la
similarity index 100%
rename from zypp/cache/Utils.cpp
rename to zypp2/cache/Utils.cpp
similarity index 100%
rename from zypp/cache/Utils.h
rename to zypp2/cache/Utils.h
similarity index 66%
rename from zypp/cache/sqlite3x/Makefile.am
rename to zypp2/cache/sqlite3x/Makefile.am
index 5543f97..76f3c16 100644 (file)
@@ -10,11 +10,11 @@ sqlite3xinclude_HEADERS = sqlite3x.hpp
 
 ## ##################################################
 
-noinst_LTLIBRARIES =   lib@PACKAGE@_sqlite3x.la
+noinst_LTLIBRARIES =   lib@PACKAGE@2_sqlite3x.la
 
 ## ##################################################
 
-lib@PACKAGE@_sqlite3x_la_SOURCES =     sqlite3x_command.cpp sqlite3x_connection.cpp \
+lib@PACKAGE@2_sqlite3x_la_SOURCES =    sqlite3x_command.cpp sqlite3x_connection.cpp \
        sqlite3x_exception.cpp sqlite3x_reader.cpp sqlite3x_transaction.cpp
        
-lib@PACKAGE@_sqlite3x_la_LDFLAGS = -lsqlite3 @LIBZYPP_VERSION_INFO@
+lib@PACKAGE@2_sqlite3x_la_LDFLAGS = -lsqlite3 @LIBZYPP_VERSION_INFO@
diff --git a/zypp2/source/Makefile.am b/zypp2/source/Makefile.am
new file mode 100644 (file)
index 0000000..ceed323
--- /dev/null
@@ -0,0 +1,24 @@
+## Process this file with automake to produce Makefile.in
+## ##################################################
+
+SUBDIRS = yum
+
+INCLUDES =                                     \
+       -DZYPP_BASE_LOGGER_LOGGROUP=\"source2\"
+
+## ##################################################
+
+sourceincludedir = $(pkgincludedir)/source
+
+sourceinclude_HEADERS =
+
+noinst_LTLIBRARIES =   lib@PACKAGE@2_source.la
+
+## ##################################################
+
+lib@PACKAGE@2_source_la_SOURCES =
+
+lib@PACKAGE@_source_la_LIBADD = \
+               yum/lib@PACKAGE@2_source_yum.la
+
+## ##################################################
diff --git a/zypp2/source/yum/Makefile.am b/zypp2/source/yum/Makefile.am
new file mode 100644 (file)
index 0000000..4dc9b63
--- /dev/null
@@ -0,0 +1,24 @@
+## Process this file with automake to produce Makefile.in
+## ##################################################
+
+SUBDIRS =
+
+INCLUDES =                                             \
+       -DZYPP_BASE_LOGGER_LOGGROUP=\"yum\"
+
+## ##################################################
+
+sourceyumincludedir = $(pkgincludedir)/source/yum
+
+sourceyuminclude_HEADERS =             \
+       YUMSourceCacher.h
+
+
+noinst_LTLIBRARIES =   lib@PACKAGE@2_source_yum.la
+
+## ##################################################
+
+lib@PACKAGE@2_source_yum_la_SOURCES =  \
+       YUMSourceCacher.cc
+
+## ##################################################