diff options
author | Michael Schroeder <mls@suse.de> | 2011-12-22 14:00:02 +0100 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2011-12-22 14:00:02 +0100 |
commit | 1a04759b6b594876286af072f25b28d3b0db4ed6 (patch) | |
tree | bec015f8ebd94f1f3e067785f45a304912c24af2 /src/pool.h | |
parent | 87c5e01c975fee7cc5b4b5c180bbad9bfb1f3dbd (diff) | |
download | libsolv-1a04759b6b594876286af072f25b28d3b0db4ed6.tar.gz libsolv-1a04759b6b594876286af072f25b28d3b0db4ed6.tar.bz2 libsolv-1a04759b6b594876286af072f25b28d3b0db4ed6.zip |
- INCOMPATIBLE CHANGE: index with repoid (thus pool->repos[repoid] == repo->repoid)
Also make repo->free not renumber the repos, instead we leave a hole (like with
the solvables).
Diffstat (limited to 'src/pool.h')
-rw-r--r-- | src/pool.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -70,6 +70,7 @@ struct _Pool { struct _Repo **repos; int nrepos; /* repos allocated */ + int urepos; /* repos in use */ struct _Repo *installed; /* packages considered installed */ @@ -323,10 +324,9 @@ void pool_add_fileconflicts_deps(Pool *pool, Queue *conflicts); for (vp = pool_whatprovides(pool, d) ; (v = pool->whatprovidesdata[vp++]) != 0; ) /* loop over all repositories */ -/* note that idx is not the repoid */ -#define FOR_REPOS(idx, r) \ - for (idx = 0; idx < pool->nrepos; idx++) \ - if ((r = pool->repos[idx]) != 0) +#define FOR_REPOS(repoid, r) \ + for (repoid = 1; repoid < pool->nrepos; repoid++) \ + if ((r = pool->repos[repoid]) != 0) #define POOL_DEBUG(type, ...) do {if ((pool->debugmask & (type)) != 0) pool_debug(pool, (type), __VA_ARGS__);} while (0) |