Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Remove unused PKG_STREAM type
Baptiste Daroussin committed 12 years ago
commit 1e929940e3d4230bae5ef819e981c5158865ca9a
parent 993d3b8
1 file changed +0 -6
modified libpkg/pkg.c
@@ -1156,7 +1156,6 @@ pkg_open2(struct pkg **pkg_p, struct archive **a, struct archive_entry **ae,
	struct sbuf	**sbuf;
	int		  i, r;
	bool		  read_from_stdin = 0;
-
	struct stat	  sb;

	struct {
		const char *name;
@@ -1197,11 +1196,6 @@ pkg_open2(struct pkg **pkg_p, struct archive **a, struct archive_entry **ae,

	pkg = *pkg_p;

-
	if (S_ISREG(sb.st_mode) && !read_from_stdin) 
-
		pkg->type = PKG_FILE;
-
	else
-
		pkg->type = PKG_STREAM;
-

	while ((ret = archive_read_next_header(*a, ae)) == ARCHIVE_OK) {
		fpath = archive_entry_pathname(*ae);
		if (fpath[0] != '+')