Mailinglist Archive: zypp-commit (223 mails)

< Previous Next >
[zypp-commit] r10678 - in /trunk/libzypp/devel/devel.jkupec: CMakeLists.txt play.cc poolquery.cc repos.cc
  • From: jkupec@xxxxxxxxxxxxxxxx
  • Date: Mon, 28 Jul 2008 15:19:55 -0000
  • Message-id: <20080728151956.022472C01F@xxxxxxxxxxxxxxxx>
Author: jkupec
Date: Mon Jul 28 17:19:55 2008
New Revision: 10678

URL: http://svn.opensuse.org/viewcvs/zypp?rev=10678&view=rev
Log:
- backup

Added:
trunk/libzypp/devel/devel.jkupec/play.cc
Modified:
trunk/libzypp/devel/devel.jkupec/CMakeLists.txt
trunk/libzypp/devel/devel.jkupec/poolquery.cc
trunk/libzypp/devel/devel.jkupec/repos.cc

Modified: trunk/libzypp/devel/devel.jkupec/CMakeLists.txt
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/devel/devel.jkupec/CMakeLists.txt?rev=10678&r1=10677&r2=10678&view=diff
==============================================================================
--- trunk/libzypp/devel/devel.jkupec/CMakeLists.txt (original)
+++ trunk/libzypp/devel/devel.jkupec/CMakeLists.txt Mon Jul 28 17:19:55 2008
@@ -1,6 +1,6 @@
ADD_DEFINITIONS(
- -DSRC_DIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}\\\"
- -DTESTS_SRC_DIR=\\\"${CMAKE_SOURCE_DIR}/tests\\\"
+ -DSRC_DIR="${CMAKE_CURRENT_SOURCE_DIR}"
+ -DTESTS_SRC_DIR="${CMAKE_SOURCE_DIR}/tests"
)

SET( bridge_SRCS
@@ -32,3 +32,6 @@

#ADD_EXECUTABLE( yumparsertest YUMParser_test.cc )
#TARGET_LINK_LIBRARIES( yumparsertest zypp )
+
+ADD_EXECUTABLE( play play.cc )
+TARGET_LINK_LIBRARIES( play zypp boost_signals )

Added: trunk/libzypp/devel/devel.jkupec/play.cc
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/devel/devel.jkupec/play.cc?rev=10678&view=auto
==============================================================================
--- trunk/libzypp/devel/devel.jkupec/play.cc (added)
+++ trunk/libzypp/devel/devel.jkupec/play.cc Mon Jul 28 17:19:55 2008
@@ -0,0 +1,18 @@
+#include <iostream>
+
+#include "zypp/base/LogTools.h"
+
+using std::endl;
+using std::cout;
+
+
+// ---------------------------------------------------------------------------
+
+int main( int argc, const char * argv[] )
+{
+ --argc; ++argv; // skip arg 0
+
+ cout << "done" << endl;
+ return 0;
+}
+

Modified: trunk/libzypp/devel/devel.jkupec/poolquery.cc
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/devel/devel.jkupec/poolquery.cc?rev=10678&r1=10677&r2=10678&view=diff
==============================================================================
--- trunk/libzypp/devel/devel.jkupec/poolquery.cc (original)
+++ trunk/libzypp/devel/devel.jkupec/poolquery.cc Mon Jul 28 17:19:55 2008
@@ -40,6 +40,8 @@
sat::Pool::instance().addRepoSolv(dir / "factory-nonoss.solv", i2);
RepoInfo i3; i3.setAlias("zypp_svn");
sat::Pool::instance().addRepoSolv(dir / "zypp_svn.solv", i3);
+ RepoInfo i5; i5.setAlias("pyton");
+ sat::Pool::instance().addRepoSolv(dir / "python.solv", i5);
RepoInfo i4; i4.setAlias("@System");
sat::Pool::instance().addRepoSolv(dir / "@System.solv", i4);
}
@@ -57,8 +59,7 @@
init_pool();

PoolQuery q;
- q.addAttribute(sat::SolvAttr::name, "zypper");
- q.setEdition(Edition("0.10.5-5"), Rel::LE);
+ q.addAttribute(sat::SolvAttr::name, "cjson");

/*
PoolQuery q;
@@ -70,5 +71,8 @@
*/
std::for_each(q.begin(), q.end(), &result_cb);
// cout << q.size() << endl;
- cout << q << endl;
+// cout << q << endl;
+ cout << "=====" << endl;
+ for_(it, q.selectableBegin(), q.selectableEnd())
+ cout << *it << endl;
}

Modified: trunk/libzypp/devel/devel.jkupec/repos.cc
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/devel/devel.jkupec/repos.cc?rev=10678&r1=10677&r2=10678&view=diff
==============================================================================
--- trunk/libzypp/devel/devel.jkupec/repos.cc (original)
+++ trunk/libzypp/devel/devel.jkupec/repos.cc Mon Jul 28 17:19:55 2008
@@ -7,7 +7,7 @@
#include "zypp/RepoInfo.h"
#include "zypp/Arch.h"
#include "zypp/Pathname.h"
-#include "zypp/RepoManager.h";
+#include "zypp/RepoManager.h"

using std::cout;
using std::endl;
@@ -52,9 +52,8 @@

RepoManager rm(repo_options);

- std::list<RepoInfo> repos = rm.knownRepositories();
- for ( std::list<RepoInfo>::const_iterator it = repos.begin();
- it != repos.end(); ++it )
+ for ( RepoManager::RepoConstIterator it = rm.repoBegin();
+ it != rm.repoEnd(); ++it )
{
cout << it->packagesPath() << endl;
}

--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages