Mailinglist Archive: zypp-commit (301 mails)

< Previous Next >
[zypp-commit] r7616 - /trunk/sat-solver/tools/source_content.c
  • From: matz@xxxxxxxxxxxxxxxx
  • Date: Tue, 23 Oct 2007 17:57:17 -0000
  • Message-id: <20071023175717.705E32D17C@xxxxxxxxxxxxxxxx>
Author: matz
Date: Tue Oct 23 19:57:17 2007
New Revision: 7616

URL: http://svn.opensuse.org/viewcvs/zypp?rev=7616&view=rev
Log:
No need for testing null-ness anymore.

Modified:
trunk/sat-solver/tools/source_content.c

Modified: trunk/sat-solver/tools/source_content.c
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/tools/source_content.c?rev=7616&r1=7615&r2=7616&view=diff
==============================================================================
--- trunk/sat-solver/tools/source_content.c (original)
+++ trunk/sat-solver/tools/source_content.c Tue Oct 23 19:57:17 2007
@@ -267,7 +267,7 @@
dp->supplements = adddep(pool, &pd, dp->supplements, value, 0);
else if (istag ("ENHANCES"))
dp->enhances = adddep(pool, &pd, dp->enhances, value, 0);
- /* There doesn't seem to exist FRESHENS. */
+ /* FRESHENS doesn't seem to exist. */
/* XXX do something about LINGUAS and ARCH? */
#undef istag
}
@@ -285,24 +285,15 @@
s = pool->solvables + source->start;
for (i = 0; i < pack; i++, s++)
{
- if (deps[i].provides)
- s->provides = deps[i].provides;
- if (deps[i].requires)
- s->requires = deps[i].requires;
- if (deps[i].conflicts)
- s->conflicts = deps[i].conflicts;
- if (deps[i].obsoletes)
- s->obsoletes = deps[i].obsoletes;
- if (deps[i].recommends)
- s->recommends = deps[i].recommends;
- if (deps[i].supplements)
- s->supplements = deps[i].supplements;
- if (deps[i].suggests)
- s->suggests = deps[i].suggests;
- if (deps[i].enhances)
- s->enhances = deps[i].enhances;
- if (deps[i].freshens)
- s->freshens = deps[i].freshens;
+ s->provides = deps[i].provides;
+ s->requires = deps[i].requires;
+ s->conflicts = deps[i].conflicts;
+ s->obsoletes = deps[i].obsoletes;
+ s->recommends = deps[i].recommends;
+ s->supplements = deps[i].supplements;
+ s->suggests = deps[i].suggests;
+ s->enhances = deps[i].enhances;
+ s->freshens = deps[i].freshens;
}

free(deps);

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

< Previous Next >
This Thread
  • No further messages