Mailinglist Archive: zypp-commit (606 mails)

< Previous Next >
[zypp-commit] r9375 - in /trunk/libzypp/zypp: ResStatus.cc sat/SATResolver.cc
  • From: schubi2@xxxxxxxxxxxxxxxx
  • Date: Fri, 04 Apr 2008 12:48:10 -0000
  • Message-id: <20080404124810.A76863418F@xxxxxxxxxxxxxxxx>
Author: schubi2
Date: Fri Apr 4 14:48:10 2008
New Revision: 9375

URL: http://svn.opensuse.org/viewcvs/zypp?rev=9375&view=rev
Log:
fixed setting recommend/suggested flag

Modified:
trunk/libzypp/zypp/ResStatus.cc
trunk/libzypp/zypp/sat/SATResolver.cc

Modified: trunk/libzypp/zypp/ResStatus.cc
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/ResStatus.cc?rev=9375&r1=9374&r2=9375&view=diff
==============================================================================
--- trunk/libzypp/zypp/ResStatus.cc (original)
+++ trunk/libzypp/zypp/ResStatus.cc Fri Apr 4 14:48:10 2008
@@ -28,8 +28,6 @@
const ResStatus ResStatus::toBeUninstalledDueToUpgrade (INSTALLED,
TRANSACT, EXPLICIT_INSTALL, DUE_TO_UPGRADE);
const ResStatus ResStatus::installed (INSTALLED);
const ResStatus ResStatus::uninstalled (UNINSTALLED);
- const ResStatus ResStatus::recommended (RECOMMENDED);
- const ResStatus ResStatus::suggested (SUGGESTED);

///////////////////////////////////////////////////////////////////
//

Modified: trunk/libzypp/zypp/sat/SATResolver.cc
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/sat/SATResolver.cc?rev=9375&r1=9374&r2=9375&view=diff
==============================================================================
--- trunk/libzypp/zypp/sat/SATResolver.cc (original)
+++ trunk/libzypp/zypp/sat/SATResolver.cc Fri Apr 4 14:48:10 2008
@@ -525,7 +525,9 @@

PoolItem poolItem = _pool.find (sat::Solvable(p));
if (poolItem) {
- SATSolutionToPool (poolItem, ResStatus::recommended,
ResStatus::SOLVER);
+ ResStatus status = poolItem.status();
+ status.setRecommended (true);
+ SATSolutionToPool (poolItem, status, ResStatus::SOLVER);
} else {
ERR << "id " << p << " not found in ZYPP pool." << endl;
}
@@ -541,7 +543,9 @@

PoolItem poolItem = _pool.find (sat::Solvable(p));
if (poolItem) {
- SATSolutionToPool (poolItem, ResStatus::suggested, ResStatus::SOLVER);
+ ResStatus status = poolItem.status();
+ status.setSuggested (true);
+ SATSolutionToPool (poolItem, status, ResStatus::SOLVER);
} else {
ERR << "id " << p << " not found in ZYPP pool." << 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