Use filedescriptor to avoid string manipulation
modified libpkg/pkg_config.c
@@ -704,12 +704,14 @@ walk_repo_obj(const ucl_object_t *obj, const char *file, pkg_init_flags flags)
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -719,13 +721,21 @@ load_repo_file(const char *repofile, pkg_init_flags flags)
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
| + | |
|
|
|
|
| + | |
|
|
|
|
|
@@ -749,10 +759,11 @@ load_repo_files(const char *repodir, pkg_init_flags flags)
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -760,16 +771,13 @@ load_repo_files(const char *repodir, pkg_init_flags flags)
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| + | |
|
|
|
|
|