I don't think that we will have lots of subdirectories here so that
filesystems won't be able to cope. However, it would be nice to use the
same structure throughout.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
// XXX check if the UUID is valid
- return pakfire_cache_path(pkg->pakfire, pkg->cache_path, "%c%c/%c%c/%s/%s",
- uuid[0], uuid[1], uuid[2], uuid[4], uuid + 5, filename);
+ return pakfire_cache_path(pkg->pakfire, pkg->cache_path, "%s/%s", uuid, filename);
}
PAKFIRE_EXPORT const char* pakfire_package_get_string(
goto OUT;
}
- // XXX check if the UUID is valid
-
// Make new path where the archive is being stored
- r = pakfire_string_format(repo_path, "%c%c/%c%c/%s/%s",
- uuid[0], uuid[1], uuid[2], uuid[3], uuid + 4, filename);
+ r = pakfire_string_format(repo_path, "%s/%s", uuid, filename);
if (r)
goto OUT;