Imported Upstream version 0.6.27
[platform/upstream/libsolv.git] / src / repodata.c
index 027c24c..06b2ea3 100644 (file)
@@ -351,6 +351,8 @@ repodata_dir2str(Repodata *data, Id did, const char *suf)
 
   if (!did)
     return suf ? suf : "";
+  if (did == 1 && !suf)
+    return "/";
   parent = did;
   while (parent)
     {