projects
/
platform
/
upstream
/
libsolv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f85eb45
)
Use correct namespace (e.g. pattern:) even if solvable has no name [bnc#470011]
author
Michael Andres
<ma@suse.de>
Wed, 18 Feb 2009 15:46:01 +0000
(16:46 +0100)
committer
Michael Andres
<ma@suse.de>
Wed, 18 Feb 2009 15:47:29 +0000
(16:47 +0100)
tools/repo_rpmmd.c
patch
|
blob
|
history
diff --git
a/tools/repo_rpmmd.c
b/tools/repo_rpmmd.c
index
c3433f5
..
ec50b16
100644
(file)
--- 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)