summaryrefslogtreecommitdiff
path: root/src/pool.h
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2012-02-17 15:47:47 +0100
committerMichael Schroeder <mls@suse.de>2012-02-17 15:47:47 +0100
commitfb73073fad0bd5bfddea4b3968f05ec6ad505461 (patch)
treeb536f79eedfb43916b5f58065d552164d846a885 /src/pool.h
parent6f573dbe7b2c1e98d2961b931b125bec85d01462 (diff)
downloadlibsolv-fb73073fad0bd5bfddea4b3968f05ec6ad505461.tar.gz
libsolv-fb73073fad0bd5bfddea4b3968f05ec6ad505461.tar.bz2
libsolv-fb73073fad0bd5bfddea4b3968f05ec6ad505461.zip
- hide repodata internals (needed to move repo_write from ext to src for this)
also deleted repodata_create, use repo_add_repodata instead
Diffstat (limited to 'src/pool.h')
-rw-r--r--src/pool.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pool.h b/src/pool.h
index ee9f256..20de966 100644
--- a/src/pool.h
+++ b/src/pool.h
@@ -314,6 +314,11 @@ void pool_add_fileconflicts_deps(Pool *pool, Queue *conflicts);
if ((r = pool->repos[repoid]) != 0)
+#ifdef ENABLE_COMPS
+#define ISCONDDEP(id) (ISRELDEP(id) && (GETRELDEP(pool, id))->flags == REL_COND)
+#define MODIFYCONDDEP(id, tst) do { Reldep *condrd = GETRELDEP(pool, id); Id condp, condpp; FOR_PROVIDES(condrd->evr, condp, condpp) if (tst) break; id = condp ? condrd->name : 0;} while(0)
+#endif
+
#define POOL_DEBUG(type, ...) do {if ((pool->debugmask & (type)) != 0) pool_debug(pool, (type), __VA_ARGS__);} while (0)
#define IF_POOLDEBUG(type) if ((pool->debugmask & (type)) != 0)