From: Michael Schroeder Date: Tue, 16 Sep 2014 12:47:35 +0000 (+0200) Subject: make sure that we have a dirid when adding du data X-Git-Tag: 0.6.6~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67d33e6b297129bc99295cac8ab9d5c49e6e9b86;p=thirdparty%2Flibsolv.git make sure that we have a dirid when adding du data --- diff --git a/ext/repo_rpmmd.c b/ext/repo_rpmmd.c index 5029a68a..21dd9130 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, " 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)