ooops I forget add data for tests :)
authorJosef Reidinger <jreidinger@suse.cz>
Thu, 10 Apr 2008 15:05:44 +0000 (15:05 +0000)
committerJosef Reidinger <jreidinger@suse.cz>
Thu, 10 Apr 2008 15:05:44 +0000 (15:05 +0000)
tests/zypp/data/Locks/@System.solv [new file with mode: 0644]
tests/zypp/data/Locks/factory.solv [new file with mode: 0644]
tests/zypp/data/Locks/locks [new file with mode: 0644]
zypp/PoolQuery.cc

diff --git a/tests/zypp/data/Locks/@System.solv b/tests/zypp/data/Locks/@System.solv
new file mode 100644 (file)
index 0000000..a6fe83d
Binary files /dev/null and b/tests/zypp/data/Locks/@System.solv differ
diff --git a/tests/zypp/data/Locks/factory.solv b/tests/zypp/data/Locks/factory.solv
new file mode 100644 (file)
index 0000000..4543b15
Binary files /dev/null and b/tests/zypp/data/Locks/factory.solv differ
diff --git a/tests/zypp/data/Locks/locks b/tests/zypp/data/Locks/locks
new file mode 100644 (file)
index 0000000..9e3fcf2
--- /dev/null
@@ -0,0 +1,5 @@
+#repo cannot be tested due to possibly missing allias
+kind: patch
+
+string: kde
+attribute: pattern
index 285ae76..ef30635 100644 (file)
@@ -11,6 +11,7 @@
 */
 #include <iostream>
 #include <sstream>
+#include <boost/algorithm/string/replace.hpp>
 
 #include "zypp/base/Gettext.h"
 #include "zypp/base/Logger.h"
@@ -877,7 +878,6 @@ attremptycheckend:
 
   const PoolQueryAttr PoolQueryAttr::noAttr;
 
-  const PoolQueryAttr PoolQueryAttr::nameAttr( "name" );
   const PoolQueryAttr PoolQueryAttr::repoAttr( "repo" );
   const PoolQueryAttr PoolQueryAttr::kindAttr( "kind" );