diff options
author | Michael Schroeder <mls@suse.de> | 2013-05-27 16:25:38 +0200 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2013-05-27 16:25:38 +0200 |
commit | 369513a6091c09dc10f20db508f79a3999ae30e2 (patch) | |
tree | 4464119bdce72a9d4a2056ce25f7447883ffe7bd /src/pool.c | |
parent | 8a0ffe45569bbc831dcefc582ce88870e2c9b205 (diff) | |
download | libsolv-369513a6091c09dc10f20db508f79a3999ae30e2.tar.gz libsolv-369513a6091c09dc10f20db508f79a3999ae30e2.tar.bz2 libsolv-369513a6091c09dc10f20db508f79a3999ae30e2.zip |
add pool_lookup_idarray for completeness
Diffstat (limited to 'src/pool.c')
-rw-r--r-- | src/pool.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -2137,6 +2137,16 @@ pool_lookup_checksum(Pool *pool, Id entry, Id keyname, Id *typep) return solvable_lookup_checksum(pool->solvables + entry, keyname, typep); } +int +pool_lookup_idarray(Pool *pool, Id entry, Id keyname, Queue *q) +{ + if (entry == SOLVID_POS && pool->pos.repo) + return repo_lookup_idarray(pool->pos.repo, pool->pos.repodataid ? entry : pool->pos.solvid, keyname, q); + if (entry <= 0) + return 0; + return solvable_lookup_idarray(pool->solvables + entry, keyname, q); +} + const char * pool_lookup_deltalocation(Pool *pool, Id entry, unsigned int *medianrp) { |