Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Do not print rules to sbuf is debug is not enabled.
Vsevolod Stakhov committed 12 years ago
commit e30604b0079148a40abf17ec81bb7a331158bf89
parent 41b2e1cd4bcff5bb640d1f7a48db2328bb1bec85
1 file changed +7 -0
modified libpkg/pkg_solve.c
@@ -109,6 +109,13 @@ pkg_debug_print_rule (struct pkg_solve_item *rule)
{
	struct pkg_solve_item *it;
	struct sbuf *sb;
+
	int64_t expectlevel;
+

+
	/* Avoid expensive printing if debug level is less than required */
+
	expectlevel = pkg_object_int(pkg_config_get("DEBUG_LEVEL"));
+

+
	if (expectlevel < 2)
+
		return;

	sb = sbuf_new_auto();