]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
make sure that we have a dirid when adding du data
authorMichael Schroeder <mls@suse.de>
Tue, 16 Sep 2014 12:47:35 +0000 (14:47 +0200)
committerMichael Schroeder <mls@suse.de>
Tue, 16 Sep 2014 12:47:35 +0000 (14:47 +0200)
ext/repo_rpmmd.c

index 5029a68a56cd110322c84119b00d59e14bb83a0c..21dd9130768e775adf6661ac25b1f732e66b4a85 100644 (file)
@@ -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)