projects
/
oweals
/
opkg-lede.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* Rename top level ipkg directory to opkg
[oweals/opkg-lede.git]
/
pkg_dest.c
diff --git
a/pkg_dest.c
b/pkg_dest.c
index 9adea1f02fc043a6b5afd719794bd18bfaba2cc3..f015dd6dbffa3eed687f660de865d73e55f28f65 100644
(file)
--- a/
pkg_dest.c
+++ b/
pkg_dest.c
@@
-15,7
+15,7
@@
General Public License for more details.
*/
General Public License for more details.
*/
-#include "
i
pkg.h"
+#include "
o
pkg.h"
#include "pkg_dest.h"
#include "file_util.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);
}
file_mkdir_hier(dest->root_dir, 0755);
- sprintf_alloc(&dest->
i
pkg_dir, "%s%s",
- dest->root_dir,
I
PKG_STATE_DIR_PREFIX);
- file_mkdir_hier(dest->
i
pkg_dir, 0755);
+ sprintf_alloc(&dest->
o
pkg_dir, "%s%s",
+ dest->root_dir,
O
PKG_STATE_DIR_PREFIX);
+ file_mkdir_hier(dest->
o
pkg_dir, 0755);
if (str_starts_with (lists_dir, "/"))
sprintf_alloc(&dest->lists_dir, "%s", lists_dir);
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",
file_mkdir_hier(dest->lists_dir, 0755);
sprintf_alloc(&dest->info_dir, "%s/%s",
- dest->
ipkg_dir, I
PKG_INFO_DIR_SUFFIX);
+ dest->
opkg_dir, O
PKG_INFO_DIR_SUFFIX);
file_mkdir_hier(dest->info_dir, 0755);
sprintf_alloc(&dest->status_file_name, "%s/%s",
file_mkdir_hier(dest->info_dir, 0755);
sprintf_alloc(&dest->status_file_name, "%s/%s",
- dest->
ipkg_dir, I
PKG_STATUS_FILE_SUFFIX);
+ dest->
opkg_dir, O
PKG_STATUS_FILE_SUFFIX);
sprintf_alloc(&dest->status_file_tmp_name, "%s/%s.tmp",
sprintf_alloc(&dest->status_file_tmp_name, "%s/%s.tmp",
- dest->
ipkg_dir, I
PKG_STATUS_FILE_SUFFIX);
+ dest->
opkg_dir, O
PKG_STATUS_FILE_SUFFIX);
dest->status_file = NULL;
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->root_dir);
dest->root_dir = NULL;
- free(dest->
i
pkg_dir);
- dest->
i
pkg_dir = NULL;
+ free(dest->
o
pkg_dir);
+ dest->
o
pkg_dir = NULL;
free(dest->lists_dir);
dest->lists_dir = NULL;
free(dest->lists_dir);
dest->lists_dir = NULL;