Move hardlinks detection to utils.c to avoid code duplication
modified libpkg/pkg.c
@@ -1082,7 +1082,6 @@ pkg_recompute_flatsize(struct pkg *pkg)
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -1092,24 +1091,8 @@ pkg_recompute_flatsize(struct pkg *pkg)
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
modified libpkg/pkg_ports.c
@@ -166,7 +166,7 @@ dirrmtry(struct plist *p, char *line)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -191,24 +191,8 @@ file(struct plist *p, char *line)
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
modified libpkg/private/pkg.h
@@ -153,12 +153,6 @@ struct pkg_group {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
|
|
|
|
|
modified libpkg/private/utils.h
@@ -39,6 +39,12 @@
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -55,4 +61,6 @@ int is_conf_file(const char *path, char *newpath, size_t len);
|
|
|
|
|
|
| + | |
| + | |
|
modified libpkg/utils.c
@@ -362,3 +362,22 @@ is_conf_file(const char *path, char *newpath, size_t len)
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |