diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2016-10-27 14:53:30 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2016-10-27 14:53:30 +0900 |
commit | ef6e8f8da0690f0e11c12eff0f6e7fa97c109d54 (patch) | |
tree | c6f0b428de4c2dc7ec102e1f4798bb11202f9785 /ext/repo_rpmmd.c | |
parent | ba4d7201b44ecec1182b53571d98b2be4ca50264 (diff) | |
download | libsolv-ef6e8f8da0690f0e11c12eff0f6e7fa97c109d54.tar.gz libsolv-ef6e8f8da0690f0e11c12eff0f6e7fa97c109d54.tar.bz2 libsolv-ef6e8f8da0690f0e11c12eff0f6e7fa97c109d54.zip |
Imported Upstream version 0.6.6upstream/0.6.6
Change-Id: I39261d63e28e2f057203bd11bd6b1cbb83523fab
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'ext/repo_rpmmd.c')
-rw-r--r-- | ext/repo_rpmmd.c | 2 |
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) |