Mailinglist Archive: zypp-commit (266 mails)

< Previous Next >
[zypp-commit] r11661 - /trunk/sat-solver/applayer/xsolvable.c
  • From: kkaempf@xxxxxxxxxxxxxxxx
  • Date: Wed, 12 Nov 2008 14:40:50 -0000
  • Message-id: <20081112144050.4D2AC37260@xxxxxxxxxxxxxxxx>
Author: kkaempf
Date: Wed Nov 12 15:40:49 2008
New Revision: 11661

URL: http://svn.opensuse.org/viewcvs/zypp?rev=11661&view=rev
Log:
replace deprecated prune_best_arch_name_version (from policy.c)
with prune_to_best_arch() and prune_to_best_version()

(This still prefers arch over version, which should be a policy :-( )

Modified:
trunk/sat-solver/applayer/xsolvable.c

Modified: trunk/sat-solver/applayer/xsolvable.c
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/applayer/xsolvable.c?rev=11661&r1=11660&r2=11661&view=diff
==============================================================================
--- trunk/sat-solver/applayer/xsolvable.c (original)
+++ trunk/sat-solver/applayer/xsolvable.c Wed Nov 12 15:40:49 2008
@@ -149,6 +149,7 @@
Queue plist;
int i, end;
Solvable *s;
+ Solver *solver = solver_create(pool);

id = str2id( pool, name, 1 );
queue_init( &plist);
@@ -164,7 +165,8 @@
queue_push(&plist, i);
}

- prune_best_arch_name_version(NULL, pool, &plist);
+ prune_to_best_arch(pool, &plist);
+ prune_to_best_version(solver, &plist);
if (plist.count == 0) {
return NULL;
}

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

< Previous Next >
This Thread
  • No further messages