Mailinglist Archive: zypp-commit (606 mails)

< Previous Next >
[zypp-commit] r9393 - /trunk/sat-solver/src/pool.c
  • From: mlschroe@xxxxxxxxxxxxxxxx
  • Date: Fri, 04 Apr 2008 20:37:25 -0000
  • Message-id: <20080404203725.5EC70342C2@xxxxxxxxxxxxxxxx>
Author: mlschroe
Date: Fri Apr 4 22:37:25 2008
New Revision: 9393

URL: http://svn.opensuse.org/viewcvs/zypp?rev=9393&view=rev
Log:
- fix bug

Modified:
trunk/sat-solver/src/pool.c

Modified: trunk/sat-solver/src/pool.c
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/src/pool.c?rev=9393&r1=9392&r2=9393&view=diff
==============================================================================
--- trunk/sat-solver/src/pool.c (original)
+++ trunk/sat-solver/src/pool.c Fri Apr 4 22:37:25 2008
@@ -423,7 +423,6 @@
int flags = rd->flags;
Id pid, *pidp;
Id p, *pp, *pp2, *pp3;
- int i;

d = GETRELID(d);
queue_init_buffer(&plist, buf, sizeof(buf)/sizeof(*buf));
@@ -471,18 +470,17 @@
}
break;
case REL_ARCH:
- pp = pool_whatprovides(pool, name);
- i = 0;
+ pp = pp2 = pool_whatprovides(pool, name);
while ((p = *pp++) != 0)
{
Solvable *s = pool->solvables + p;
if (s->arch == evr)
queue_push(&plist, p);
else
- i = 1;
+ pp2 = 0;
}
- if (i == 0)
- return pp;
+ if (pp2)
+ return pp2;
break;
default:
break;

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

< Previous Next >
This Thread
  • No further messages