diff options
author | Michael Schroeder <mls@suse.de> | 2007-10-23 15:24:36 +0000 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2007-10-23 15:24:36 +0000 |
commit | cb48480faf7479badbe83abfe5c6745ddb64f311 (patch) | |
tree | 0696fad63410ac7f37ab35290111af51b010be2b /tools/source_rpmmd.c | |
parent | 8eaf179856e0299473b3493768a44276c9990e5c (diff) | |
download | libsolv-cb48480faf7479badbe83abfe5c6745ddb64f311.tar.gz libsolv-cb48480faf7479badbe83abfe5c6745ddb64f311.tar.bz2 libsolv-cb48480faf7479badbe83abfe5c6745ddb64f311.zip |
- switch dependencies from Id pointers to Offsets
Diffstat (limited to 'tools/source_rpmmd.c')
-rw-r--r-- | tools/source_rpmmd.c | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/tools/source_rpmmd.c b/tools/source_rpmmd.c index d18e068..cc8a7d4 100644 --- a/tools/source_rpmmd.c +++ b/tools/source_rpmmd.c @@ -473,24 +473,15 @@ pool_addsource_rpmmd(Pool *pool, FILE *fp) s = pool->solvables + source->start; for (i = 0; i < pd.pack; i++, s++) { - if (deps[i].provides) - s->provides = source->idarraydata + deps[i].provides; - if (deps[i].requires) - s->requires = source->idarraydata + deps[i].requires; - if (deps[i].conflicts) - s->conflicts = source->idarraydata + deps[i].conflicts; - if (deps[i].obsoletes) - s->obsoletes = source->idarraydata + deps[i].obsoletes; - if (deps[i].recommends) - s->recommends = source->idarraydata + deps[i].recommends; - if (deps[i].supplements) - s->supplements = source->idarraydata + deps[i].supplements; - if (deps[i].suggests) - s->suggests = source->idarraydata + deps[i].suggests; - if (deps[i].enhances) - s->enhances = source->idarraydata + deps[i].enhances; - if (deps[i].freshens) - s->freshens = source->idarraydata + 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); free(pd.content); |