summaryrefslogtreecommitdiff
path: root/ext/repo_rpmmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/repo_rpmmd.c')
-rw-r--r--ext/repo_rpmmd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/repo_rpmmd.c b/ext/repo_rpmmd.c
index 5029a68..21dd913 100644
--- a/ext/repo_rpmmd.c
+++ b/ext/repo_rpmmd.c
@@ -829,6 +829,8 @@ startElement(void *userData, const char *name, const char **atts)
pd->ret = pool_error(pool, -1, "<dir .../> tag without 'name' attribute");
break;
}
+ if (!dirid)
+ dirid = repodata_str2dir(pd->data, "/", 1);
if ((str = find_attr("size", atts)) != 0)
filesz = strtol(str, 0, 0);
if ((str = find_attr("count", atts)) != 0)