change pkg_open behaviour: Now if the second arguments points to an already existing struct pkg * then is will be reused this can save lots of allocation and time
modified libpkg/pkg.c
@@ -202,7 +202,11 @@ pkg_open(const char *path, struct pkg **pkg_p, int query_flags)
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified libpkg/pkg_repo.c
@@ -18,7 +18,8 @@ pkg_create_repo(char *path, void (progress)(struct pkg *pkg, void *data), void *
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -141,9 +142,9 @@ pkg_create_repo(char *path, void (progress)(struct pkg *pkg, void *data), void *
|
|
|
|
|
|
| - | |
|
|
|
|
| + | |
|
|
|
|
|