diff options
author | Michael Schroeder <mls@suse.de> | 2012-12-10 19:18:31 +0100 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2012-12-10 19:18:31 +0100 |
commit | 6d567daed91cd8c0ca20e3d680f0b94012fa8df3 (patch) | |
tree | b8562ace67963ea722e350cf8bb946b3b228368c /examples/solv.c | |
parent | 4c3003d96af1bc145fa66124abdbd29e0a9c682f (diff) | |
download | libsolv-6d567daed91cd8c0ca20e3d680f0b94012fa8df3.tar.gz libsolv-6d567daed91cd8c0ca20e3d680f0b94012fa8df3.tar.bz2 libsolv-6d567daed91cd8c0ca20e3d680f0b94012fa8df3.zip |
implement special install/erase namespace provides hack
Diffstat (limited to 'examples/solv.c')
-rw-r--r-- | examples/solv.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/solv.c b/examples/solv.c index 3d690f1..6218e64 100644 --- a/examples/solv.c +++ b/examples/solv.c @@ -2214,6 +2214,19 @@ nscallback(Pool *pool, void *data, Id name, Id evr) } return bestp; } +#if 0 + if (name == NAMESPACE_LANGUAGE) + { + if (!strcmp(pool_id2str(pool, evr), "ja")) + return 1; + if (!strcmp(pool_id2str(pool, evr), "de")) + return 1; + if (!strcmp(pool_id2str(pool, evr), "en")) + return 1; + if (!strcmp(pool_id2str(pool, evr), "en_US")) + return 1; + } +#endif return 0; } @@ -2808,6 +2821,10 @@ main(int argc, char **argv) // queue_push2(&job, SOLVER_NOOBSOLETES|SOLVER_SOLVABLE_NAME, pool_str2id(pool, "kernel-pae", 1)); // queue_push2(&job, SOLVER_NOOBSOLETES|SOLVER_SOLVABLE_NAME, pool_str2id(pool, "kernel-pae-base", 1)); // queue_push2(&job, SOLVER_NOOBSOLETES|SOLVER_SOLVABLE_NAME, pool_str2id(pool, "kernel-pae-extra", 1)); +#if 0 + queue_push2(&job, SOLVER_INSTALL|SOLVER_SOLVABLE_PROVIDES, pool_rel2id(pool, NAMESPACE_LANGUAGE, 0, REL_NAMESPACE, 1)); + queue_push2(&job, SOLVER_ERASE|SOLVER_CLEANDEPS|SOLVER_SOLVABLE_PROVIDES, pool_rel2id(pool, NAMESPACE_LANGUAGE, 0, REL_NAMESPACE, 1)); +#endif #ifdef SOFTLOCKS_PATH addsoftlocks(pool, &job); |