This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "New approach to dependency solving".
The branch, SuSE-Code-11-Branch has been updated
via 0d2d7db6c66cfad6793ec16e547071a92c507b70 (commit)
from dc8da0f567fdd46aaa7ebfe71ce7b14dafdde6b8 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 0d2d7db6c66cfad6793ec16e547071a92c507b70
Author: Michael Schroeder
Date: Fri Jan 16 15:32:52 2009 +0100
- add hack for product buddies
-----------------------------------------------------------------------
Summary of changes and diff:
src/knownid.h | 2 ++
src/solver.c | 11 +++++++++++
2 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/src/knownid.h b/src/knownid.h
index b2567ea..8fc319b 100644
--- a/src/knownid.h
+++ b/src/knownid.h
@@ -207,6 +207,8 @@ KNOWNID(DELTA_SEQ_NAME, "delta:seqname"),
KNOWNID(DELTA_SEQ_EVR, "delta:seqevr"),
KNOWNID(DELTA_SEQ_NUM, "delta:seqnum"),
+KNOWNID(NAMESPACE_PRODUCTBUDDY, "namespace:productbuddy"),
+
KNOWNID(ID_NUM_INTERNAL, 0)
#ifdef KNOWNID_INITIALIZE
diff --git a/src/solver.c b/src/solver.c
index 472f985..cd261a0 100644
--- a/src/solver.c
+++ b/src/solver.c
@@ -1176,6 +1176,17 @@ addrpmrulesforsolvable(Solver *solv, Solvable *s, Map *m)
addrule(solv, -n, 0); /* uninstallable */
}
+ /* yet another SUSE hack, sigh */
+ if (pool->nscallback && !strncmp("product:", id2str(pool, s->name), 8))
+ {
+ Id buddy = pool->nscallback(pool, pool->nscallbackdata, NAMESPACE_PRODUCTBUDDY, n);
+ if (buddy > 0 && buddy != SYSTEMSOLVABLE && buddy != n && buddy < pool->nsolvables)
+ {
+ addrule(solv, n, -buddy);
+ addrule(solv, buddy, -n);
+ }
+ }
+
/*-----------------------------------------
* check requires of s
*/
hooks/post-receive
--
New approach to dependency solving
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org