Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Do no print message if pkg register failed
Baptiste Daroussin committed 11 years ago
commit 318091ab9b75d8a6e284db14c65ab40c73a78d5b
parent 1ed9bed
1 file changed +1 -1
modified src/register.c
@@ -320,7 +320,7 @@ exec_register(int argc, char **argv)

	retcode = pkg_add_port(db, pkg, input_path, location, testing_mode);

-
	if (!legacy && pkg_has_message(pkg))
+
	if (!legacy && retcode != EPKG_OK && pkg_has_message(pkg))
		pkg_printf("%M\n", pkg);

	pkg_free(pkg);