Mailinglist Archive: zypp-commit (266 mails)

< Previous Next >
[zypp-commit] r11596 - in /trunk/libzypp-testsuite/solver: deptestomatic.howto src/deptestomatic.cc
  • From: schubi2@xxxxxxxxxxxxxxxx
  • Date: Thu, 06 Nov 2008 15:25:26 -0000
  • Message-id: <20081106152527.155E8338D5@xxxxxxxxxxxxxxxx>
Author: schubi2
Date: Thu Nov 6 16:25:26 2008
New Revision: 11596

URL: http://svn.opensuse.org/viewcvs/zypp?rev=11596&view=rev
Log:
added flag: ignorealreadyrecommended,onlyRequires to the testcases

Modified:
trunk/libzypp-testsuite/solver/deptestomatic.howto
trunk/libzypp-testsuite/solver/src/deptestomatic.cc

Modified: trunk/libzypp-testsuite/solver/deptestomatic.howto
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp-testsuite/solver/deptestomatic.howto?rev=11596&r1=11595&r2=11596&view=diff
==============================================================================
--- trunk/libzypp-testsuite/solver/deptestomatic.howto (original)
+++ trunk/libzypp-testsuite/solver/deptestomatic.howto Thu Nov 6 16:25:26 2008
@@ -21,6 +21,10 @@
<!-- IMPORTANT: This flag has to bet
set before the declaration of channel, source, system -->

<forceResolve/>: <!-- force Resolve -->
+
+ <ignorealreadyrecommended/>: <!-- ignore recommended packages that have
already been recommended by the installed packages -->
+
+ <onlyRequires/>: <!-- ignore recommended packages -->

<maxSolverPasses value=".."/> <!-- sets the max solver passes -->


Modified: trunk/libzypp-testsuite/solver/src/deptestomatic.cc
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp-testsuite/solver/src/deptestomatic.cc?rev=11596&r1=11595&r2=11596&view=diff
==============================================================================
--- trunk/libzypp-testsuite/solver/src/deptestomatic.cc (original)
+++ trunk/libzypp-testsuite/solver/src/deptestomatic.cc Thu Nov 6 16:25:26 2008
@@ -115,6 +115,8 @@
static ZYpp::Ptr God;
static RepoManager manager;
static bool forceResolve;
+static bool ignorealreadyrecommended;
+static bool onlyRequires;
static zypp::solver::detail::SolverQueueItemList solverQueue;

typedef set<PoolItem> PoolItemSet;
@@ -723,6 +725,12 @@
if (node->equals ("forceResolve")) {
forceResolve = true;

+ } else if (node->equals ("ignorealreadyrecommended")) {
+ ignorealreadyrecommended = true;
+
+ } else if (node->equals ("onlyRequires")) {
+ onlyRequires = true;
+
} else if (node->equals ("system")) {

string file = node->getProp ("file");
@@ -848,6 +856,8 @@
zypp::solver::detail::Resolver_Ptr resolver = new
zypp::solver::detail::Resolver( pool );
resolver->setTesting ( true ); // continue despite
missing target
resolver->setForceResolve( forceResolve );
+ resolver->setIgnorealreadyrecommended( ignorealreadyrecommended );
+ resolver->setOnlyRequires( onlyRequires );

if (!locales.empty()) {
pool.setRequestedLocales( locales );
@@ -1437,6 +1447,9 @@
zypp::base::LogControl::instance().logfile( "-" );

forceResolve = false;
+ ignorealreadyrecommended = false;
+ onlyRequires = false;
+
solverQueue.clear();

manager = makeRepoManager( "/tmp/myrepos" );

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

< Previous Next >
This Thread
  • No further messages