Hello community,
here is the log from the commit of package libzypp-zmd-backend
checked in at Thu Mar 30 15:03:35 CEST 2006.
--------
--- libzypp-zmd-backend/libzypp-zmd-backend.changes 2006-03-30 13:40:24.000000000 +0200
+++ libzypp-zmd-backend/libzypp-zmd-backend.changes 2006-03-30 15:02:23.000000000 +0200
@@ -1,0 +2,6 @@
+Thu Mar 30 15:01:13 CEST 2006 - kkaempf@suse.de
+
+- let the target fill the pool.
+- rev 2792.
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ libzypp-zmd-backend.spec ++++++
--- /var/tmp/diff_new_pack.ZxhztV/_old 2006-03-30 15:03:21.000000000 +0200
+++ /var/tmp/diff_new_pack.ZxhztV/_new 2006-03-30 15:03:21.000000000 +0200
@@ -22,7 +22,7 @@
Obsoletes: zmd-librc-backend
Summary: ZMD backend for Package, Patch, Pattern, and Product Management
Version: 7.1.1
-Release: 24
+Release: 25
Source: zmd-backend-%{version}.tar.bz2
Prefix: /usr
@@ -69,6 +69,9 @@
%changelog -n libzypp-zmd-backend
* Thu Mar 30 2006 - kkaempf@suse.de
+- let the target fill the pool.
+- rev 2792.
+* Thu Mar 30 2006 - kkaempf@suse.de
- add resolvable kind to output of query-pool.
- move the zsources table to separate database (#161318)
- rev 2786
++++++ zmd-backend-7.1.1.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/zmd-backend-7.1.1/src/query-pool.cc new/zmd-backend-7.1.1/src/query-pool.cc
--- old/zmd-backend-7.1.1/src/query-pool.cc 2006-03-30 12:01:57.000000000 +0200
+++ new/zmd-backend-7.1.1/src/query-pool.cc 2006-03-30 14:58:53.000000000 +0200
@@ -59,6 +59,7 @@
if (filter == "packages") kind = ResTraitszypp::Package::kind;
else if (filter == "patches") kind = ResTraitszypp::Patch::kind;
else if (filter == "patterns") kind = ResTraitszypp::Pattern::kind;
+ else if (filter == "selections") kind = ResTraitszypp::Selection::kind;
else if (filter == "products") kind = ResTraitszypp::Product::kind;
else if (!filter.empty() && filter != FILTER_ALL) {
std::cerr << "usage: query-pool [packages|patches|patterns|products] [<alias>]" << endl;
@@ -82,47 +83,41 @@
}
}
- if (system
- || catalog.empty())
- {
- zypp::ResStore store = Z->target()->resolvables();
- MIL << "System contributing " << store.size() << " resolvables" << endl;
- Z->addResolvables( store, true );
- }
+ // add all non-installed (cached sources) resolvables to the pool
+ // remark: If only the systems resolvables should be shown (catalog == "@system")
+ // then the SourceManager is not initialized (see approx. 20 lines above)
+ // and the following loop is not run at all.
for (SourceManager::Source_const_iterator it = manager->Source_begin(); it != manager->Source_end(); ++it) {
zypp::ResStore store = it->resolvables();
MIL << "Catalog " << it->id() << " contributing " << store.size() << " resolvables" << endl;
- Z->addResolvables( store, (it->id() == "@system") );
+ Z->addResolvables( store, false );
}
+ MIL << "Pool has " << Z->pool().size() << " entries" << endl;
+
if (filter.empty()
|| filter == FILTER_ALL)
{
- if (system) {
- PrintItem printitem( "" );
- zypp::invokeOnEach( Z->pool().begin(), Z->pool().end(),
- zypp::resfilter::ByInstalled (),
- zypp::functor::functorRef