X-Git-Url: https://git.librecmc.org/?p=oweals%2Fopkg-lede.git;a=blobdiff_plain;f=pkg_dest.c;h=f015dd6dbffa3eed687f660de865d73e55f28f65;hp=9adea1f02fc043a6b5afd719794bd18bfaba2cc3;hb=0b7a99e65bb95cd86d8846a21fce1cfc2b0b7495;hpb=7fc0de8e48b598a188237a13424be3f86189b3d9 diff --git a/pkg_dest.c b/pkg_dest.c index 9adea1f..f015dd6 100644 --- a/pkg_dest.c +++ b/pkg_dest.c @@ -15,7 +15,7 @@ General Public License for more details. */ -#include "ipkg.h" +#include "opkg.h" #include "pkg_dest.h" #include "file_util.h" @@ -34,9 +34,9 @@ int pkg_dest_init(pkg_dest_t *dest, const char *name, const char *root_dir,const } file_mkdir_hier(dest->root_dir, 0755); - sprintf_alloc(&dest->ipkg_dir, "%s%s", - dest->root_dir, IPKG_STATE_DIR_PREFIX); - file_mkdir_hier(dest->ipkg_dir, 0755); + sprintf_alloc(&dest->opkg_dir, "%s%s", + dest->root_dir, OPKG_STATE_DIR_PREFIX); + file_mkdir_hier(dest->opkg_dir, 0755); if (str_starts_with (lists_dir, "/")) sprintf_alloc(&dest->lists_dir, "%s", lists_dir); @@ -46,14 +46,14 @@ int pkg_dest_init(pkg_dest_t *dest, const char *name, const char *root_dir,const file_mkdir_hier(dest->lists_dir, 0755); sprintf_alloc(&dest->info_dir, "%s/%s", - dest->ipkg_dir, IPKG_INFO_DIR_SUFFIX); + dest->opkg_dir, OPKG_INFO_DIR_SUFFIX); file_mkdir_hier(dest->info_dir, 0755); sprintf_alloc(&dest->status_file_name, "%s/%s", - dest->ipkg_dir, IPKG_STATUS_FILE_SUFFIX); + dest->opkg_dir, OPKG_STATUS_FILE_SUFFIX); sprintf_alloc(&dest->status_file_tmp_name, "%s/%s.tmp", - dest->ipkg_dir, IPKG_STATUS_FILE_SUFFIX); + dest->opkg_dir, OPKG_STATUS_FILE_SUFFIX); dest->status_file = NULL; @@ -68,8 +68,8 @@ void pkg_dest_deinit(pkg_dest_t *dest) free(dest->root_dir); dest->root_dir = NULL; - free(dest->ipkg_dir); - dest->ipkg_dir = NULL; + free(dest->opkg_dir); + dest->opkg_dir = NULL; free(dest->lists_dir); dest->lists_dir = NULL;