dest->root_dir = xstrdup(root_dir);
} else {
sprintf_alloc(&dest->root_dir, "%s/", root_dir);
dest->root_dir = xstrdup(root_dir);
} else {
sprintf_alloc(&dest->root_dir, "%s/", root_dir);
dest->root_dir, OPKG_STATE_DIR_PREFIX);
file_mkdir_hier(dest->opkg_dir, 0755);
dest->root_dir, OPKG_STATE_DIR_PREFIX);
file_mkdir_hier(dest->opkg_dir, 0755);
sprintf_alloc(&dest->lists_dir, "%s", lists_dir);
else
sprintf_alloc(&dest->lists_dir, "/%s", lists_dir);
sprintf_alloc(&dest->lists_dir, "%s", lists_dir);
else
sprintf_alloc(&dest->lists_dir, "/%s", lists_dir);
sprintf_alloc(&dest->status_file_name, "%s/%s",
dest->opkg_dir, OPKG_STATUS_FILE_SUFFIX);
sprintf_alloc(&dest->status_file_name, "%s/%s",
dest->opkg_dir, OPKG_STATUS_FILE_SUFFIX);