ref: refs/heads/SuSE-Code-11-Branch
commit 3b444f16ef8035c569e8a564bdc1d25070c646b1
Author: Michael Andres
Date: Wed Feb 18 16:46:01 2009 +0100
Use correct namespace (e.g. pattern:) even if solvable has no name [bnc#470011]
---
tools/repo_rpmmd.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/tools/repo_rpmmd.c b/tools/repo_rpmmd.c
index c3433f5..ec50b16 100644
--- a/tools/repo_rpmmd.c
+++ b/tools/repo_rpmmd.c
@@ -896,6 +896,8 @@ endElement(void *userData, const char *name)
switch (pd->state)
{
case STATE_SOLVABLE:
+ if ( pd->kind && !s->name ) /* add namespace in case of NULL name */
+ s->name = str2id(pool, join2( pd->kind, ":", ""), 1);
if (!s->arch)
s->arch = ARCH_NOARCH;
if (!s->evr)
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org