Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Remove paking_append_file function
Baptiste Daroussin committed 12 years ago
commit b21d98fdae0632300bd0fe5ba44e39b4b8737171
parent b9e6708
2 files changed +2 -12
modified libpkg/packing.c
@@ -141,14 +141,6 @@ cleanup:
}

int
-
packing_append_file(struct packing *pack, const char *filepath,
-
    const char *newpath)
-
{
-
	return (packing_append_file_attr(pack, filepath, newpath,
-
	    NULL, NULL, 0));
-
}
-

-
int
packing_append_file_attr(struct packing *pack, const char *filepath,
    const char *newpath, const char *uname, const char *gname, mode_t perm)
{
@@ -302,8 +294,8 @@ packing_append_tree(struct packing *pack, const char *treepath,
			 /* +1 = skip trailing slash */
			 sbuf_cat(sb, fts_e->fts_path + treelen + 1);
			 sbuf_finish(sb);
-
			 packing_append_file(pack, fts_e->fts_name,
-
			    sbuf_get(sb));
+
			 packing_append_file_attr(pack, fts_e->fts_name,
+
			    sbuf_get(sb), NULL, NULL, 0);
			 break;
		case FTS_DC:
		case FTS_DNR:
modified libpkg/private/pkg.h
@@ -355,8 +355,6 @@ void pkg_annotation_free(struct pkg_note *);
struct packing;

int packing_init(struct packing **pack, const char *path, pkg_formats format);
-
int packing_append_file(struct packing *pack, const char *filepath,
-
			const char *newpath);
int packing_append_file_attr(struct packing *pack, const char *filepath,
			     const char *newpath, const char *uname,
			     const char *gname, mode_t perm);