Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Only files starting with lib* should be considered as provided
Baptiste Daroussin committed 11 years ago
commit 527bfcb72df8e6c0c26f0bae7e9e9915460d2d37
parent 0b68b47
1 file changed +4 -0
modified libpkg/pkg.c
@@ -1297,6 +1297,10 @@ pkg_addshlib_provided(struct pkg *pkg, const char *name)
	assert(pkg != NULL);
	assert(name != NULL && name[0] != '\0');

+
	/* ignore files which are not starting with lib */
+
	if (strncmp(name, "lib", 3) != 0)
+
		return (EPKG_OK);
+

	pkg_shlib_new(&s);
	sbuf_set(&s->name, name);
	HASH_FIND_STR(pkg->shlibs_provided, pkg_shlib_name(s), f);