1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
2 /* Resolver_problems.cc
4 * Copyright (C) 2000-2002 Ximian, Inc.
5 * Copyright (C) 2005 SUSE Linux Products GmbH
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License,
9 * version 2, as published by the Free Software Foundation.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
25 #include "zypp/solver/detail/Resolver.h"
26 #include "zypp/solver/detail/SATResolver.h"
27 #include "zypp/Resolver.h"
28 #include "zypp/ResolverProblem.h"
30 #include "zypp/base/String.h"
31 #include "zypp/base/Logger.h"
32 #include "zypp/base/Gettext.h"
34 #include "zypp/base/Algorithm.h"
35 #include "zypp/ResPool.h"
36 #include "zypp/ResFilters.h"
39 /////////////////////////////////////////////////////////////////////////
41 { ///////////////////////////////////////////////////////////////////////
42 ///////////////////////////////////////////////////////////////////////
44 { /////////////////////////////////////////////////////////////////////
45 /////////////////////////////////////////////////////////////////////
47 { ///////////////////////////////////////////////////////////////////
52 Resolver::problems () const
54 MIL << "Resolver::problems()" << endl;
55 return _satResolver->problems();
59 Resolver::applySolutions (const ProblemSolutionList & solutions)
61 for (ProblemSolutionList::const_iterator iter = solutions.begin();
62 iter != solutions.end(); ++iter) {
63 ProblemSolution_Ptr solution = *iter;
64 if (!solution->apply (*this))
69 ///////////////////////////////////////////////////////////////////
71 /////////////////////////////////////////////////////////////////////
72 /////////////////////////////////////////////////////////////////////
74 ///////////////////////////////////////////////////////////////////////
75 ///////////////////////////////////////////////////////////////////////
77 /////////////////////////////////////////////////////////////////////////