summaryrefslogtreecommitdiff
path: root/src/pool.c
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2013-05-27 16:25:38 +0200
committerMichael Schroeder <mls@suse.de>2013-05-27 16:25:38 +0200
commit369513a6091c09dc10f20db508f79a3999ae30e2 (patch)
tree4464119bdce72a9d4a2056ce25f7447883ffe7bd /src/pool.c
parent8a0ffe45569bbc831dcefc582ce88870e2c9b205 (diff)
downloadlibsolv-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.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/pool.c b/src/pool.c
index 5d3e61a..eef7344 100644
--- a/src/pool.c
+++ b/src/pool.c
@@ -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)
{